Proper use of mutexes in Python

I don’t know why you’re using the Window’s Mutex instead of Python’s. Using the Python methods, this is pretty simple: But note, because of the architecture of CPython (namely the Global Interpreter Lock) you’ll effectively only have one thread running at a time anyway–this is fine if a number of them are I/O bound, although …

Read more

What is a mutex?

When I am having a big heated discussion at work, I use a rubber chicken which I keep in my desk for just such occasions. The person holding the chicken is the only person who is allowed to talk. If you don’t hold the chicken you cannot speak. You can only indicate that you want …

Read more