© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
V. SarcarParallel Programming with C# and .NEThttps://doi.org/10.1007/979-8-8688-0488-5_3

3. Exploring Synchronization and Concurrent Collections

Vaskaran Sarcar1  
(1)
Near Garia Station, Post: Garia, Kuntala Furniture, 2nd Floor, Kolkata, West Bengal, India
 

In a multithreaded environment, managing the shared data is a challenging activity. This is because multiple threads may try to perform the reading and writing operations simultaneously. If you do not coordinate them, you may see erroneous outcomes. Synchronization mechanisms help you control access to shared data to avoid inconsistent or erroneous outcomes.

This chapter discusses some useful synchronization ...

Get Parallel Programming with C# and .NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications 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.