help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Re: IO and Process Scheduler


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Re: IO and Process Scheduler
Date: Sat, 04 Jun 2005 14:52:07 +0200
User-agent: Mozilla Thunderbird 0.9 (Macintosh/20041103)


     st> MUD.MUDServer new port: 4321; start!
     'register server socket'
     'waiting for connection'
     MUDServer new "<0xb3d54b10>"

 now `telnet localhost 4321` - but nothing happens, if you type
 something - the accept is blocked by console, besides using
 forkAt: - now type something in smalltalk :
Ah yes, that's known. It is not a bug, but more of a missing feature: the console blocks the processes, but it will work as usual if, for example, you add a

   Processor activeProcess suspend

or, better, add to MUDServer a #wait method that suspends the current process until a method (#close maybe) is called -- maybe with a semaphore.

The mailing list archive has a sketch of how to fix this.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]