Дао многопоточного программирования
Thursday, 19 May 2005 11:17![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
David Butenhof пишет:
...But unless you can do enough analysis to identify all possible execution paths, you can only use a single mutex within the process: a "global lock". There need be only one; there CAN be only one. Because if you know that it's OK to have more than one, you don't need any at all; you can simply lock properly in the first place, where needed.