threads
Magnus Heino
magnus.heino at rivermen.se
Tue Nov 14 08:44:07 EST 2000
Hi.
Why do I get 'python' two times in the ps down below? I guess the one with
pid 4421 is the thread that is started, but why isn't it removed when the
thread dies?
/Magnus
>>> import thread
>>> def foo():
... pass
...
>>> thread.start_new_thread(foo, ())
>>> del foo
>>> del thread
>>>
[magnus at daysleeper magnus]$ ps ax|grep python
4420 pts/2 S 0:00 python
4421 pts/2 S 0:00 python
4440 pts/3 S 0:00 grep python
[magnus at daysleeper magnus]$
More information about the Python-list
mailing list