Re: problem on waiting exit thread and write on file

2007-06-15 Thread Flyzone
Marc 'BlackJack' Rintsch ha scritto: > for thread in threads: > thread.join() > > Much shorter, isn't it!? :-) If i do like you tell, all thread will run together right? So i'll get troubles! I have a list of hostname, i run a network program and then i need to write some of the outpu

Re: problem on waiting exit thread and write on file

2007-06-13 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Flyzone wrote: > I need to run in thread a command, one thread for one parameter. > So i made a for loop, creating 5 threads and waiting their stop with: > Main { >open file BW2 for write >. (creating list of thread with a counter) >Stopped=False >wh

problem on waiting exit thread and write on file

2007-06-13 Thread Flyzone
I have a list of parameters. I need to run in thread a command, one thread for one parameter. So i made a for loop, creating 5 threads and waiting their stop with: for parameter in parameters Thread{ write on BW2 } Main { open file BW2 for write . (creating list of