A little of coordination for Rosettacode

Ali Çehreli acehreli at yahoo.com
Wed Feb 26 07:13:25 PST 2014


On 02/26/2014 04:46 AM, Stanislav Blinov wrote:

 > I forgot to note that both synchronized {} blocks should also be
 > synchronizing on the same mutex.

Oh, that's a good one! :)

 > Run the code several times and you'll no doubt stumble upon it.

But I had inserted that Sleep() in there. Isn't that the solution for 
all multi-threading problems? :p

Ali



More information about the Digitalmars-d-learn mailing list