Thread Memory Leak

Marco Catunda catunda at pobox.com
Tue Jun 25 10:54:25 EDT 2002


The second line "listThread = []" in the loop do it., don't it?

-- Marco Catunda

On Tue, 25 Jun 2002 10:11:08 -0300, Skip Montanaro wrote:

>     Marco> while 1:
>     Marco>     listThread = []
> 
>     Marco>     for i in range(50):
>     Marco>         listThread.append( threading.Thread( None, runthread

> You never remove any thread objects from your listThread list.  It fills
> up with completed threads.



More information about the Python-list mailing list