> [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 -*-
impo
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()
>
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)
>
>
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)
>
>
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: