andrzejn: (Default)
Андрій Новосьолов ([personal profile] andrzejn) wrote2005-05-19 11:17 am

Дао многопоточного программирования

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.