Threading objects and features
Along with the System.Threading.Thread class, .NET provides a number of classes that help you develop multithreaded applications. The following articles provide overview of those classes:
Title | Description |
---|---|
The managed thread pool | Describes the System.Threading.ThreadPool class, which provides a pool of worker threads that are managed by .NET. |
Timers | Describes .NET timers that can be used in a multithreaded environment. |
Overview of synchronization primitives | Describes types that can be used to synchronize access to a shared resource or control thread interaction. |
EventWaitHandle | Describes the System.Threading.EventWaitHandle class, which represents a thread synchronization event. |
CountdownEvent | Describes the System.Threading.CountdownEvent class, which represents a thread synchronization event that becomes set when its count is zero. |
Mutexes | Describes the System.Threading.Mutex class, which grants exclusive access to a shared resource. |
Semaphore and SemaphoreSlim | Describes the System.Threading.Semaphore class, which limits number of threads that can access a shared resource or a pool of resources concurrently. |
Barrier | Describes the System.Threading.Barrier class, which implements the barrier pattern for coordination of threads in phased operations. |
SpinLock | Describes the System.Threading.SpinLock structure, which is a lightweight alternative to the System.Threading.Monitor class for certain low-level locking scenarios. |
SpinWait | Describes the System.Threading.SpinWait structure, which provides support for spin-based waiting. |
See also
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho