Unexpected threads observed before main()

rikki cattermole rikki at cattermole.co.nz
Mon Mar 1 09:03:32 UTC 2021


On 01/03/2021 8:02 PM, Keivan Shah wrote:
> If possible, Can you also help me understand that why are the threads 
> not despawned once the GC is done collecting in this example?

There was a PR about this ages ago.

But one thing to consider is that keeping threads around not doing 
anything doesn't cost anything. But spinning up will cost something.

So it is debatable if it is a good idea to get rid of them once done 
(even if delayed).


More information about the Digitalmars-d-learn mailing list