Re: my threaded program hangs after calling Queue.join()

2010-04-06 Thread Babu
On Apr 6, 9:32 pm, Peter Otten <__pete...@web.de> wrote: > Babu wrote: > > I am not an expert in python, so any help is my appreciated.  My > > threaded program consumed everything in the queue but is not > > exiting... What is the problem with this program? > > Perhaps it's waiting for the task_do

Re: my threaded program hangs after calling Queue.join()

2010-04-06 Thread Peter Otten
Babu wrote: > I am not an expert in python, so any help is my appreciated. My > threaded program consumed everything in the queue but is not > exiting... What is the problem with this program? Perhaps it's waiting for the task_done() call associated to the (None, None) pairs. >

Re: my threaded program hangs after calling Queue.join()

2010-04-06 Thread Kushal Kumaran
On Tue, Apr 6, 2010 at 5:36 PM, Babu wrote: > I am not an expert in python, so any help is my appreciated.  My > threaded program consumed everything in the queue but is not > exiting... What is the problem with this program? > See the example in the documentation of the queue module. There must

my threaded program hangs after calling Queue.join()

2010-04-06 Thread Babu
I am not an expert in python, so any help is my appreciated. My threaded program consumed everything in the queue but is not exiting... What is the problem with this program? #!/opt/gspython-2.5/bin/python """ Intention of this program: given a list of host names in a file, get the .rhosts file,