19. Multithreading Patterns
CHAPTER 18 FOCUSED on managing threads and synchronizing the data the threads share. As developers write more multithreaded code, a common set of scenarios and programming patterns for handling those scenarios emerges. The key scenarios relate to notifications of when a thread completes and notifications about the progress on the threads’ status. In addition, there is some built-in C# functionality for calling methods asynchronously, regardless of whether their signatures match ThreadStart
. Most importantly, going with built-in patterns like this significantly reduces the effort in programming to solve these types of scenarios from scratch.
The two patterns specifically designed for these scenarios are the asynchronous ...
Get Essential C# 3.0: For .NET Framework 3.5 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.