June 2018
Intermediate to advanced
1040 pages
29h 52m
English
In Chapter 19, we discussed the details of multithreaded programming using the Task Parallel Library (TPL) and Parallel LINQ (PLINQ). One topic we specifically avoided, however, was thread synchronization, which prevents race conditions while avoiding deadlocks. Thread synchronization is the topic of this chapter.
We begin with a multithreaded example with no thread synchronization around shared data—resulting in a race condition ...
Read now
Unlock full access