Click or drag to resize

ThreadSource Enumeration

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 enum ThreadSource
Members
  Member nameDescription
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