[squeak-dev] Re: Process bug introduced in 3.10
Andreas Raab
andreas.raab at gmx.de
Sun Apr 27 18:04:19 UTC 2008
bryce at kampjes.demon.co.uk wrote:
> My next attempt at formulating a version of the same bug that'll
> run in a vanilla 3.10 image is:
>
> 100 timesRepeat:
> [processes := (1 to: 10) collect: [:each| [[(MessageTally new spyEvery: 1 on: [(Delay forMilliseconds: 500) wait]) ] repeat] fork ].
> (Delay forSeconds: 1) wait.
> processes do: [:each| each terminate].]
Running MessageTallies concurrently is a big, big no-no. Check out class
MessageTally and in particular its (shared) class variables
ObservedProcess and Timer.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|