What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
etherrotmutex.blogspot.com
What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
1–10 of 176 posts
Re: What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
#2Re: What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
#3Re: What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
#4Can someone explain the significance of this like I'm 5?
Re: What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
#5Re: What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
#6Can someone explain the significance of this like I'm 5?
Re: What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
#7Re: What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
#8Re: What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
#9Can someone explain the significance of this like I'm 5?
For instance, a named mutex is a good way to ensure the program can only be running in a single instance. Specifically, the program creates a named mutex on startup, and locks it forever. If failed to lock, it shows a message saying "another instance is already running" and quit. When the program quits normally, the OS will automatically unlock the mutex, allowing the program to run once again.
Now, imagine that by coincidence, 2 unrelated programs have implemented that approach using the same name for the mutex. This gonna break both of them with weird bugs. Launch program A, then launch program B, and it won't run complaining "another instance is already running" despite that's not true.
For this reason, mutex names are better be very unique.
A typical solution is generating a GUID and using it for the name of the mutex.
But the developer of that particular program instead used the string "What are the odds that some idiot will name his mutex ether-rot-mutex!" They're not wrong in the sense the odds are miniscule, however GUIDs are unique too and much shorter, only 36 characters.
Re: What are the odds that some idiot will name his mutex ether-rot-mutex (2017)
#10Can someone explain the significance of this like I'm 5?