Thread time-out in python

kataru1 at my-deja.com kataru1 at my-deja.com
Mon Dec 18 17:44:19 EST 2000


Hi,

In my application, I spawn a thread and give it some work. Here, I need
to be notified if that thread does not finish the assigned task in
certain time limit. Could anyone suggest me what would be the best
way to do it, if any?

Actually, I happened to look at timeoutsocket module, but that does
not seem to help. Assume my thread may not need to use any sockets.

Alternatively, will it be possible if I use popen and spawn a separate
process instead of spawing a thread?

Thank you,
Nag/


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list