Click or drag to resize

ThreadPool Class

A thread pool for parallel sequence execution
Inheritance Hierarchy
SystemObject
  de.unika.ipd.grGen.lgspThreadPool

Namespace:  de.unika.ipd.grGen.lgsp
Assembly:  lgspBackend (in lgspBackend.dll) Version: GrGen.NET 7.2
Syntax
C#
public static class ThreadPool

The ThreadPool type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberPoolSize
Public propertyStatic memberPoolSizeWasSet
Public propertyStatic memberThreadId
The internal thread id, not the ManagedThreadId of the thread.
Top
Methods
  NameDescription
Public methodStatic memberFetchWorkerAndExecuteWork
Tries to fetch a worker, if this fails (because the thread pool is depleted) -1 is returned. Otherwise, a worker starts executing the given task, and its internal thread id is returned.
Public methodStatic memberSetPoolSize
Tries to set the pool size to numThreads for doing work. Returns the number of threads really set, which may be lower due to a lower number of processors available. Only to be called once.
Public methodStatic memberWaitForWorkDone
Waits until the thread of the given internal thread id completed executing its task
Top
See Also