All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.ThreadPool
java.lang.Object
|
+----JavaGroups.ThreadPool
- public class ThreadPool
- extends Object
Maintains a set of ReusableThreads. When a thread is to be returned, all existing threads
are checked: when one is available, it will be returned. Otherwise, a new thread is created
and returned, unless the pool limit is reached, in which case null
is returned.
-
ThreadPool(int)
-
-
Destroy()
-
-
finalize()
-
-
GetThread()
-
-
main(String[])
-
-
toString()
-
ThreadPool
public ThreadPool(int max_num)
GetThread
public synchronized ReusableThread GetThread()
Destroy
public void Destroy()
finalize
public void finalize()
- Overrides:
- finalize in class Object
toString
public String toString()
- Overrides:
- toString in class Object
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index