Re: [BangPypers] Query on correct use of threading
Pls try this: https://bpaste.net/show/4279bfdb091a On Tue, Nov 8, 2016 at 9:33 PM, Noufal Ibrahim KVwrote: > On Tue, Nov 08 2016, Rajesh Deo wrote: > > > Dear All, > > > > I was exploring the threading module and came up with following, after > > going through @raymondh's talk (https://www.youtube.com/ > watch?v=Bv25Dwe84g0) > > > > http://pastebin.com/usKE6nME > > Can you put it on another pastebin service? My ISP is blocking this. > > [...] > > > -- > Cordially, > Noufal > http://nibrahim.net.in > ___ > BangPypers mailing list > BangPypers@python.org > https://mail.python.org/mailman/listinfo/bangpypers > ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Query on correct use of threading
On Tue, Nov 08 2016, Rajesh Deo wrote: > Dear All, > > I was exploring the threading module and came up with following, after > going through @raymondh's talk (https://www.youtube.com/watch?v=Bv25Dwe84g0) > > http://pastebin.com/usKE6nME Can you put it on another pastebin service? My ISP is blocking this. [...] -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Query on correct use of threading
Dear All, I was exploring the threading module and came up with following, after going through @raymondh's talk (https://www.youtube.com/watch?v=Bv25Dwe84g0) http://pastebin.com/usKE6nME While the code runs fine when ran once or twice, it either deadlocks or waits indefinitely while performing a queue.get() when ran multiple times (in separate invocations of the script, one after another) Can someone help me understand what is specifically wrong in this code? how to debug this sort of behaviour since a simple print would also block, and/or test for race conditions within multithreaded code? (time fuzzing?) Thanks for your help. Best regards Rajesh ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers