Chapter 30. Hybrid Thread Synchronization Constructs

In this chapter:

A Simple Hybrid Lock

Spinning, Thread Ownership, and Recursion

Hybrid Constructs in the Framework Class Library

The Famous Double-Check Locking Technique

The Condition Variable Pattern

Asynchronous Synchronization

The Concurrent Collection Classes

In Chapter 29, I discussed the primitive user-mode and kernel-mode thread synchronization constructs. From these primitive constructs, all other thread synchronization constructs can be built. Typically, other thread synchronization constructs are built by combining the user-mode and kernel-mode constructs, and I call these hybrid thread synchronization constructs. Hybrid constructs provide the performance benefit of the primitive user-mode ...

Get CLR via C#, Fourth Edition 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.