[BangPypers] Query on correct use of threading

Rajesh Deo rpdsec at gmail.com
Tue Nov 8 10:11:00 EST 2016

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)


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

More information about the BangPypers mailing list