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

مشاهدة النسخة كاملة : Windows with C++: Thread Pool Synchronization



C++ Programming
10-27-2011, 09:40 AM
Blocking operations are bad news for concurrency. You need a way for the thread pool to wait on your behalf without affecting its concurrency limits. It can then queue a callback once the resource is available or the time has elapsed. Along with work objects, the thread pool API provides a number of other callback-generating objects. Here, Kenny Kerr shows how to use wait objects.



MSDN Magazine November 2011 (http://msdn.microsoft.com/magazine/acd6dc8e-4e7d-46c0-a214-9a487fcae6fe)