All Manuals > LispWorks® User Guide and Reference Manual > 14 LispWorks as a dynamic library

14.5 Multiprocessing in a dynamic library

Multiprocessing is started automatically in a LispWorks dynamic library. Therefore you can arrange for Lisp initialization operations by adding process specifications to *initial-processes*.

For example, if you have a function like this:

(defun my-server ()
  (let ((s (establish-a-socket)))
    (loop (accept-connection s))))

you need to do something like:

(pushnew '("My server" () my-server) mp:*initial-processes*
         :test 'equalp)

before saving or delivering your library.


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:20