[Newbies] BlockClosure>>fork problem

Bert Freudenberg bert at freudenbergs.de
Tue Feb 20 20:55:11 UTC 2007


On Feb 20, 2007, at 21:28 , George Herolyants wrote:

> Thanks for this answer, Ron. But actually I'm not confused with  
> order in wich '1' and '2' presents in result line. I can't  
> understand why in some cases this code results ten '1' and ten '2'  
> and in some cases it results ten '2' and only nine '1'?

Oh, that's indeed a bug. Transcript is unreliable when called from  
different processes. The mutex inside the Transcript only protects  
the change reporting but not the actual stream writing.

- Bert -




More information about the Beginners mailing list