Re: How can I wait for all the threads I spawn for 5 minutes

2007-09-03 Thread Antoon Pardon
On 2007-08-31, herman [EMAIL PROTECTED] wrote: Hi, In my python program, I would to like to spwan 5 threads, for the them for 5 minutes maximum and the continue. Here is my script: threads = [] for j in range(5): t = MyThread()

Re: How can I wait for all the threads I spawn for 5 minutes

2007-09-03 Thread Fabio Z Tessitore
[cut] But this code ends up waiting 5 minutes for **each** thread. that is not what I want. I just want to wait for 5 minutes for all threads. how can I do that? I've written a little code for you using threading. Hope it will help you: #! /usr/bin/env python # -*- coding: utf8 -*- import

Re: How can I wait for all the threads I spawn for 5 minutes

2007-09-02 Thread Bryan Olson
herman wrote: In my python program, I would to like to spwan 5 threads, for the them for 5 minutes maximum and the continue. Here is my script: threads = [] for j in range(5): t = MyThread() threads.append(t) for t

How can I wait for all the threads I spawn for 5 minutes

2007-08-31 Thread herman
Hi, In my python program, I would to like to spwan 5 threads, for the them for 5 minutes maximum and the continue. Here is my script: threads = [] for j in range(5): t = MyThread() threads.append(t) for t in threads:

Re: How can I wait for all the threads I spawn for 5 minutes

2007-08-31 Thread Steve Holden
herman wrote: Hi, In my python program, I would to like to spwan 5 threads, for the them for 5 minutes maximum and the continue. Here is my script: threads = [] for j in range(5): t = MyThread() threads.append(t)