org.objectweb.proactive.core.group.threadpool
Class ThreadInThePool

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.objectweb.proactive.core.group.threadpool.ThreadInThePool
All Implemented Interfaces:
java.lang.Runnable

public class ThreadInThePool
extends java.lang.Thread

The threads that compose a thread pool.


Field Summary
protected static int counter
           
 ThreadPool myPool
          The threadpool owner of this thread.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThreadInThePool(ThreadPool o)
          The constructor associates the thread with a thread pool.
 
Method Summary
protected static int getNextValue()
           
 void run()
          Looks for a pending job and executes it.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

counter

protected static int counter

myPool

public ThreadPool myPool
The threadpool owner of this thread.

Constructor Detail

ThreadInThePool

public ThreadInThePool(ThreadPool o)
The constructor associates the thread with a thread pool.

Parameters:
o - the thread pool
Method Detail

getNextValue

protected static int getNextValue()

run

public void run()
Looks for a pending job and executes it.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Copyright © April 2004 INRIA All Rights Reserved.