#fork and deterministic resumption of the resulting process

Mathieu Suen mathk.sue at gmail.com
Fri Feb 8 00:25:28 UTC 2008


On Feb 8, 2008, at 12:19 AM, John Brant wrote:

> [| queue |
> queue := SharedQueue new.
> [queue nextPut: 3] forkAt: Processor lowestPriority.
> queue nextPut: 1.
> [queue nextPut: 2] fork.
> (Delay forSeconds: 1) wait. "Hack to let the blocks finish"
> (Array
> 	with: queue next
> 	with: queue next
> 	with: queue next) inspect] forkAt: Processor lowestPriority + 1

I am confused why the first fork run before the second fork with the  
Andreas patch?

	Mth







More information about the Squeak-dev mailing list