Class JrompThread

java.lang.Object
java.lang.Thread
jromp.concurrent.JrompThread
All Implemented Interfaces:
Runnable

public class JrompThread extends Thread
A thread class that extends Thread and provides additional information about the thread.
  • Field Details

    • CLASS_NAME

      public static final String CLASS_NAME
  • Constructor Details

    • JrompThread

      public JrompThread(Runnable runnable, int tid, ThreadTeam team)
      Constructs a new JrompThread with the given Runnable, thread ID, and team.
      Parameters:
      runnable - the Runnable to be executed by this thread.
      tid - the thread ID.
      team - the team of this thread.
      See Also:
      • generateThreadName(ThreadTeam, int)
  • Method Details

    • getTid

      public int getTid()
    • getTeam

      public ThreadTeam getTeam()
    • getThreadName

      public String getThreadName()
    • toString

      public String toString()
      Overrides:
      toString in class Thread
    • newThreadFactory

      public static ThreadFactory newThreadFactory(int threadsPerTeam)