edu.utah.janos.nodeos
Class ThreadPoolSpec
java.lang.Object
|
+--edu.utah.janos.nodeos.pj_ThreadPoolSpec
|
+--edu.utah.janos.nodeos.ThreadPoolSpec
- public final class ThreadPoolSpec
- extends edu.utah.janos.nodeos.pj_ThreadPoolSpec
ThreadPoolSpec wrapper for Java.
The Java ThreadPoolSpec only presents the implicit thread interface
to Java code. Internally, it uses explicit threads for internal
tracking and management.
- Author:
- Janos Ministry of Development
- See Also:
Flow
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ThreadPoolSpec
public ThreadPoolSpec(int maxThreads,
int stackSize,
ThreadScheduler scheduler)
- Parameters:
maxThreads
- The maximum number of threads in the pool.stackSize
- The stack size for the threads.scheduler
- The scheduler object.
ThreadPoolSpec
public ThreadPoolSpec(int maxThreads,
int stackSize,
int rate,
ThreadScheduler scheduler)
- Parameters:
maxThreads
- The maximum number of threads in the pool.stackSize
- The stack size for the threads.rate
- The CPU rate allocation for the threads.scheduler
- The scheduler object.
getDefault
public static ThreadPoolSpec getDefault()
- Returns:
- A reasonable default ThreadPoolSpec.
getMaxRate
public static int getMaxRate()
- Returns:
- The maximum CPU rate for a thread pool.
This documentation is Copyright (C) 1998-2002 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project web site: http://www.cs.utah.edu/flux/janos/
Generated on Mar 17, 2002