Interface ThreadCreate


  • public interface ThreadCreate
    ThreadCreate : Create a thread. This provides two features:
    1. The create does not return until the thread has started.
    2. Keeps a list of all active threads, i.e. threads for which the run method has not returned.
    Author:
    mrk
    • Method Detail

      • create

        Thread create​(String name,
                      int priority,
                      RunnableReady runnableReady)
        Create a new thread.
        Parameters:
        name - the thread name
        priority - the thread priority
        runnableReady - an implementation of RunnableReady
        Returns:
        the newly created thread. Create does not return until ready has been called.
      • getThreads

        Thread[] getThreads()
        Get an array of all the active threads.
        Returns:
        The array.