You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TFairSemaphoreSection Class
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TFairSemaphoreSection Class

Critical section with semaphore capability.

Dew_Math_TFairSemaphoreSection
Syntax
C#
Visual Basic
public class TFairSemaphoreSection;

Math387.cs

This class allows multiple threads to run concurrently within a critical section. The maximum number of such threads will be limited to "Count". 

The threads will enter strictly in the order in which they arrive, but they may exit in any order depending on the workload assigned to each thread within the critical section. 

If all threads require a shared resource, this construct allows the programmer to limit the number of threads to the number of available shared resource(s).

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!