Next Previous Up Top Contents Index

11.2 The process programming interface

11.2.2 Finding out about processes

The system initializes a number of processes on startup. These processes are specified bymp:*initial-processes*.

The current process is specified bymp:*current-process*. A list of all the current processes is returned bymp:list-all-processes. The functionmp:ps is analogous to the UNIX commandps, and returns a list of the processes in the system, ordered by priority.

To find a process when you know its name, usemp:find-process-from-name. To find the name, when you have the process, usemp:process-name. The variablemp:*process-initial-bindings* specifies the variables that are initially bound in a process.

When a process has stopped, you can find a list of reasons why by callingmp:process-arrest-reasons. To obtain a list of the reasons why a process is running, callmp:process-run-reasons. Both these lists can be changed usingsetf, though it is not normally necessary to add arrest reasons. To find the priority of a process, usemp:process-priority. This can be changed usingmp:change-process-priority.


LispWorks User Guide - 14 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker