المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Threading: Break Free of Code Deadlocks in Critical Sections Under Windows



C++ Programming
03-29-2009, 02:42 AM
Critical sections, a mechanism that prohibits more than one thread at a time from executing a particular section of code, is a topic that has not received much attention and thus tends not to be well understood. A solid understanding of critical sections in Windows can really come in handy when you need to track down multithreading performance issues in your code. This articles delves under the hood of critical sections to reveal information useful in finding deadlocks and in pinpointing performance problems. It also includes a handy utility program that shows all of your critical sections and their current states.

Matt Pietrek and Russ Osterlund

<a href="http://msdn.microsoft.com/magazine/71092bd2-3e54-42b6-8513-b129e98f13f0">MSDN Magazine December 2003