|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Delay and fork |
Date: | Wed, 23 Mar 2005 08:59:06 +0100 |
User-agent: | Mozilla Thunderbird 0.9 (Macintosh/20041103) |
Smalltalk is preemptible, it is not time sharing. Smalltalk processes run until they yield, ahve finished their work, or until a higher-priority waiting process is woken up by a signal on a semaphore.You fork your processes at the same priority. By default, Smalltalk is non-preemptible. They run until they yield or have finished their work.
In other words, semaphores (which means Delays and I/O events too) will preempt a process if lower priority processes are running.
I guess I assumed that Delay's wait would yield control as well.
It does indeed.
I see. I need to configure with --enable-preemption, presumably.
This would enable time sharing. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |