Using the SynchronizationScope Activity
Anyone who has ever written multithreaded applications knows that thread synchronization is a critical topic. The task scheduler, which is used by modern Windows operating systems to control thread execution on the CPU, can pull an executing thread out at any time, even in the middle of critical operations if you’re not careful. I myself had a multithreading bug in the early sample applications for this book. (Many thanks to Scott Seely for catching this lazy programmer in the act!)
There are many multithreaded tools available to you when writing Windows-based applications–the mutex, the kernel event, critical sections, semaphores, and more. But in the end, two things must be controlled: completion of critical ...
Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.