En Thu, 28 Jun 2007 15:12:53 -0300, Robert Rawlins - Think Blue  
<[EMAIL PROTECTED]> escribió:

> I've got an application that seems to be a little bit unstable and  
> freezes
> quite a bit, and I'm suspecting it's something in one of my threads  
> that's
> causing the problem, when does a thread die?

After the run() method finishes, either normally or because an unhandled  
exception happened.

> And how can I be sure that its
> dyeing when its mean to be?

I'm not sure what you are asking - you can check periodically inside run()  
for some condition (an Event object, a special object placed on a Queue,  
even a global variable in the simplest case) and exit when the condition  
is met.

-- 
Gabriel Genellina
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to