Multithreading with C# Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

Chapter 2. Thread Synchronization

In this chapter, we will describe some of the common techniques of working with shared resources from multiple threads. You will learn the following recipes:

  • Performing basic atomic operations
  • Using the Mutex construct
  • Using the SemaphoreSlim construct
  • Using the AutoResetEvent construct
  • Using the ManualResetEventSlim construct
  • Using the CountDownEvent construct
  • Using the Barrier construct
  • Using the ReaderWriterLockSlim construct
  • Using the SpinWait construct