Is my thread safe from premature garbage collection?

fraca7 fraca7 at free.fr
Thu Sep 1 05:16:49 EDT 2005


NutJob at gmx.net a écrit :

> Anyway, if anyone could make a definite statement on whether threads
> are safe from unwanted garbage collection, that'd be really great.
> Thanks in advance for any helpful replies!

As far as I know, the threading module keeps a reference around for each 
thread, until its target method returns. I frequently use a thread 
without keeping any reference to it and never encountered any problem.



More information about the Python-list mailing list