#fork and deterministic resumption of the resulting process

Andreas Raab andreas.raab at gmx.de
Tue Feb 5 09:29:04 UTC 2008


Paolo Bonzini wrote:
> I'm with Terry on the correct idiom to use, i.e.
> 
>     workerProcess := [self runWorkerProcess] newProcess.
>     workerProcess resume.

Sigh. One of the problems with examples is that they are ... well 
examples. They are not the actual code. The above solution is simply not 
applicable in our context (if it were, I would agree with it as the 
better solution).

[BTW, I'm gonna drop out of this thread since it's clear that there is 
too much opposition for such a change to get into Squeak. Which is fine 
by me - I'll wait until you will get bitten in some really cruel and 
unusual ways and at that point you might be ready to understand why this 
fix is valuable. Personally, I think that changes that take out an 
unusual case of non-determinism like here are always worth it - if 
behavior is deterministic you can test it and fix it. If it's not you 
might get lucky a hundred times in a row. And in the one critical 
situation it will bite you].

Cheers,
   - Andreas




More information about the Squeak-dev mailing list