A process (sometimes called a thread) is a separate execution context. It has its own call stack and its own dynamic environment.
A process can be in one of three different states: running , waiting , and inactive . When a process is waiting , it is still active, but is waiting for the system to wake it up and allow its computation to restart. A process that is inactive has stopped, because it has an arrest "reason".
For a process to be active (that is, running or waiting), it must have at least one run reason and no arrest reasons. If, for example, it was necessary to temporarily stop a process, it could temporarily be given an arrest reason. However the arrest reason mechanism is not commonly used in this manner.
The process that is currently executing is termed "the current process". The function
The current process continues to be executed until either it becomes a waiting process by calling a Process Wait function as described in Process Waiting, or it allows itself to be interrupted by calling
In SMP LispWorks all processes that are not waiting are running as far as LispWorks is concerned, and are scheduled by the operating system to the available CPUs.
In non-SMP LispWorks, the system runs the waiting process with the highest priority. If processes have the same priority then the system treats them equally and fairly. This is called round robin scheduling.
The simplest way to create a process is to use process-run-function. This creates a process with the specified name which commences by applying the specified function to arguments.