Clusters, grids and Squeak

Brent Pinkney brent.pinkney at aircom.co.za
Tue Apr 19 13:05:06 UTC 2005


Hi Dave,

>   | myWorkers p1 p2 worker messageFromSupervisor |
>   myWorkers := (1 to: 95) collect: [:e |
>     p1 := OSPipe nonBlockingPipe.
>     p2 := OSPipe nonBlockingPipe.
>     worker := UnixProcess forkHeadlessSqueakAndDoThenQuit:
>         [(Delay forMilliseconds: 200) wait.
>       messageFromSupervisor := p1 reader upToEnd.
>       p2 writer nextPutAll: messageFromSupervisor.
>       p2 writer nextPutAll: ' received by worker ',
>         OSProcess thisOSProcess pid asString.
>       p2 close].
>       p2 closeWriter.
>       p1 nextPutAll: e asString, ': hello to worker from coordinator ',
>         OSProcess thisOSProcess pid asString.
>       p1 close.
>       Array with: worker with: p2].
>   myWorkers do: [:w |
>     Transcript show: w first asString, ': ', w second upToEnd; cr.
>     w second close].
>

I am really interested in this stuff - can you confirm that we worker  
processes see the same memeory as the original ? What about database  
connections.

I would try it but will not have a Unix Squeak until next week at the  
earliest.

Brent



More information about the Squeak-dev mailing list