Overview

As we've already mentioned in this book, Mono and .NET provide a rich set of classes. Some of these classes are essential for dealing with threads. The following list provides an overview of the most important components:

  • Monitor: Offers mechanisms to manage the access to objects.

  • ReaderWriterLock: Implements access to objects. Many objects can read concurrently, but just one instance is allowed to perform write operations.

  • RegisteredWaitHandle: Contains a handle for RegisterWaitForSingleObject.

  • Thread: Manages and creates a thread.

  • ThreadPool: Contains highly developed mechanisms for managing a set of threads.

  • Timer: Enables you to execute threads in certain intervals.

  • WaitHandle: Encapsulates system-specific objects that are waiting ...

Get Mono Kick Start 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.