[squeak-dev] Re: Process fork/yield
leves at elte.hu
Tue Apr 13 12:50:46 UTC 2010
On Tue, 13 Apr 2010, Ang BeePeng wrote:
> Thanks for your reply.
> Using #forkAt: without a #wait will cause processes at lower priority halt?
> Processes with lower priority wouldn't stand a chance to run, is that right?
If there's a higher priority process ready to run, it will run, so lower
priority processes will have to wait.
> To make it clear, I mean I have this two run at the same time.
> [ BLOCK A ] forkAt: 20.
> [ BLOCK B ] forkAt: 30.
> BLOCK A do not get to run, if there's no #wait in BLOCK B. Am I right?
Yes, if the process evaluating BLOCK B is never suspended, then BLOCK A
will not be evaluated.
> Thank you so much for helping. I find it hard to learn about process from
> existing code.
There are docs available, for example: http://wiki.squeak.org/squeak/382
> Ang Beepeng
> View this message in context: http://n4.nabble.com/Process-fork-yield-tp1837475p1838229.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev