Package tnx.lab.thread
Class SimpleThreadFactory
java.lang.Object
tnx.lab.thread.SimpleThreadFactory
- All Implemented Interfaces:
ThreadFactory
The simplest
ThreadFactory imaginable. This class exists just so that
you understand what a ThreadFactory is, and so that you understand
what code would be necessary for you to write if you aren't given a
ThreadFactory.- Author:
- __STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleThreadFactory
public SimpleThreadFactory()
-
-
Method Details
-
newThread
Should construct a newThread. This thread should not be running, and should not have already run. You are just setting up a thread with the given runnable so that another class can use it.- Specified by:
newThreadin interfaceThreadFactory- Returns:
- constructed thread
-