Click or drag to resize
ThreadPool Class
A fixed sized thread pool.
Inheritance Hierarchy
SystemObject
  AsterNET.UtilThreadPool

Namespace: AsterNET.Util
Assembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class ThreadPool

The ThreadPool type exposes the following members.

Constructors
  NameDescription
Public methodThreadPool
Creates a new ThreadPool of numThreads size. These Threads are waiting for jobs to be added via the addJob method.
Top
Methods
  NameDescription
Public methodAddJob
Adds a new job to the queue. This will be picked up by the next available active thread.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodShutdown
Turn off the pool. Every thread, when finished with its current work, will realize that the pool is no longer running, and will exit.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also