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