process-sleep

$Revision: 5.0.2.4 $

Function

Package: MULTIPROCESSING

Arguments: (seconds &optional whostate)

mp:process-sleep suspends the current process for at least the number of seconds specified. That number may be any non-negative, non-complex number. While the process sleeps, other processes are allowed to run. The whostate (default "Sleep") is a string which temporarily replaces the process' whostate during the sleep.

When the scheduler is first started or multiprocessing is enabled in the Lisp world, the standard Common Lisp function cl:sleep is changed to be equivalent to mp:process-sleep. Instead of causing the entire Lisp world to suspend execution for the indicated time, only the executing process is suspended. This is usually the desired action. However, the original definition of sleep remains available as the function named excl:lisp-sleep; but its behavior in sleeping the given time is implementation dependent and may not be reliable under multiprocessing.

See multiprocessing.htm for general information on multiprocessing in Allegro CL.

The general documentation description is in introduction.htm. The index in index.htm.

Copyright (C) 1998-1999, Franz Inc., Berkeley, CA. All Rights Reserved.