Let the allegory ... Whoever stood up, that and sneakers. There is no need to note this fact on themselves. First put on - own, you won. Accordingly, who did not have time, he was late, and will remain in a dreary wait until such a useful, but completely inseparable resource is released. Of course, to some extent the example will be dragged down by the ears, since in real life it is impossible to exclude the option of resolving the issue by force. But we are talking about mutexes, and therefore the unconditional control over the process of redistribution of property goes without saying. Only the goodwill of the lucky one, this time having done it first, will allow another to take advantage of the object of desired comfort.
I will add myself.
Allegory did not work out with slippers because many people can imagine working life without them. And the essence is not in slippers, but in the context of implementation. Through a mutex, the execution context of one thread blocks / releases the execution context of another or the other. And so - yes, slippers have nothing to do with it, it's in my head.
- By the way, d'Artagnan: I heard that a certain Milon of Croton was doing amazing things. For example, he wrapped his head with a rope and with one movement of the head muscles !!! ... ripped it. He knocked down the bull with one blow of his fist and carried him off on his shoulders ... well, and the like. When I found out about all this ... I did it at Pierrefon ... well, everything is the same as this Milo. Except for one thing: I could not break my head with a rope.
“This is because you have power ... not in your head.”