David Nadlinger wrote: >> but you should not reduce your sample down to maybe-incorrect >> (what it seems for me in this case) - the join wouldn't make >> your sample to big > > The example given is correct, as druntime guarantees that > non-daemon threads will run to completion before the program > terminates normally (see Thread.isDaemon).
It's really nice to have some chat about the correctness of example code snippets, but can anyone help me with the original issue? :) -- Marek Janukowicz