My bet is that there Console.WriteLinewill be enough work to keep the thread busy, while the second call test()has a chance to complete.
, WriteLine done , test done , - false.
, , done = true; , , , , done, true, Console.WriteLine.
, .
, , . , , .
:
- . Windows - , ( ).
, Console.WriteLine , , , ( done),