Title: Starting LispWorks in multiprocessing mode
This article applies to UNIX LispWorks as well as Windows and Linux LispWorks images which have been saved with the :environment nil option to save-image. By default, Windows and Linux LispWorks images start the programming environment in multiprocessing mode.
Question: The documentation for mp:initialize-multiprocessing states that the function does not return until multiprocessing terminates. What is the best way to start multiprocessing when LispWorks is started?
Answer: There are three ways, all of which will start multiprocessing after doing the usual initializations:
1. Use the -multiprocessing command-line argument
2. Save the image to start with multiprocessing by doing
3. Use delivery to create the executable and pass the options
The delivery function will be called automatically in a new process. See the Delivery User Guide for more details.
In all cases, mp:*initial-processes* can be used to control which processes are created on startup.
|See Also: |