Package jromp.concurrent
Class JrompThread
java.lang.Object
java.lang.Thread
jromp.concurrent.JrompThread
- All Implemented Interfaces:
Runnable
A thread class that extends
Thread
and provides additional information about the thread.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionJrompThread
(Runnable runnable, int tid, ThreadTeam team) Constructs a newJrompThread
with the givenRunnable
, thread ID, and team. -
Method Summary
Modifier and TypeMethodDescriptiongetTeam()
int
getTid()
static ThreadFactory
newThreadFactory
(int threadsPerTeam) toString()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, yield
-
Field Details
-
CLASS_NAME
-
-
Constructor Details
-
JrompThread
Constructs a newJrompThread
with the givenRunnable
, thread ID, and team.- Parameters:
runnable
- theRunnable
to be executed by this thread.tid
- the thread ID.team
- the team of this thread.- See Also:
-
-
Method Details