The source of a thread used to execute a parallelizable operation.
Namespace:
AGI.Foundation.Infrastructure.Threading
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax Public Enumeration ThreadSource
public enum class ThreadSource
Members
| Member name | Description |
---|
| ThreadPool |
The thread is recruited from the thread pool. It is generally much faster
to recruit threads from the thread pool than to create new ones. However, if a long-running
operation monopolizes a thread pool thread, other parts of the application can be negatively impacted.
|
| NewThread |
The brand new thread is created and used. This avoids monopolizing a thread pool thread with
a potentially long-running operation. However, it is much slower to create new threads than to
recruit threads from the thread pool.
|
See Also