This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eua
Recipients eua, jnoller, r.david.murray
Date 2010-03-26.16:11:03
SpamBayes Score 2.5353864e-05
Marked as misclassified No
Message-id <1269619865.36.0.41884883067.issue8237@psf.upfronthosting.co.za>
In-reply-to
Content
Firstly I think as you but this is not correct.
Added Q.full() to know if Queue is full or not to the testQ code..

def testQ():
   for i in range(10000):
      mp.Process( None, QueueWorker, None, (i,Q,lock) ).start()
      while len(mp.active_children())>=mp.cpu_count()+4:
        time.sleep(0.01)
        print Q.full()

output is:
1397  done
1398  done
1399  done
False
False
False

So Queue is not full. And you can also add some things to queue at this state(by adding extra line to  while loop) and this will not blocks while loop.

Please test..
History
Date User Action Args
2010-03-26 16:11:05euasetrecipients: + eua, jnoller, r.david.murray
2010-03-26 16:11:05euasetmessageid: <1269619865.36.0.41884883067.issue8237@psf.upfronthosting.co.za>
2010-03-26 16:11:03eualinkissue8237 messages
2010-03-26 16:11:03euacreate