On Saturday, 5 May 2012 at 08:45:21 UTC, Tongzhou Li wrote: > I wrote: http://codepad.org/K4xQOREZ Besides the other things mentioned, you also need to lock the monitor associated with a condition before notifying/waiting (cf. a recent discussion on the druntime list). David