DomainThreadPool Class

A pool of threads, having a specific number of threads available and waiting.

This implementation assures a specified number of threads and allow assigning specific tasks to specific threads.

When a specific number of tasks has to synchronize at certain points, the same specific number of threads is required running at the same time.

If one task has to follow another in a number of parallel "pipelines", it is required to assign specific tasks to specific threads.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class DomainThreadPool
Inheritance
Object    DomainThreadPool

Constructors

DomainThreadPool Create a threadpool with the specified number of threads

Methods

AssingTask Assign task to thread, activate thread if it is waiting

You need to call Start before any tasks will be processed.

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Start Start all threads. Can only be called once.
Stop Stop all threads. Threads cannot be started again.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also