[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple Threads in CLISP?



>>>>> "Wilbur" == Wilhelm Burger <wilbur@cast.uni-linz.ac.at> writes:

Wilbur> Are there any plans/intentions to implement multi-processing
Wilbur> (i.e., shallow processes, threads) in CLISP?

Not as far as I know.  I've always been able to get by with IPC.  For
instance, via the FFI, I've used PVM (multiple hosts/processes) with
success.

In the next release will be `socket-streams'.  It is available
in the alpha-sources now: http://sayre.sysc.pdx.edu:8001/clisp.
It should be possible to make this work with winsock, but it doesn't, yet.

Process A:
> (socket-server 8001)
#<SOCKET-SERVER 8001>
> (socket-accept *)
#<SOCKET-STREAM :#<SOCKET-SERVER 8001>>
> (read *)     
(1 2 3)

Process B:
> (socket-connect 8001)
#<SOCKET-STREAM 8001:"localhost">
> (princ '(1 2 3) *)
(1 2 3)
>