jdk/src/share/classes/java/lang/Thread.java
/**
* Allocates a new {@code Thread} object. This constructor has the same
* effect as {@linkplain #Thread(ThreadGroup,Runnable,String) Thread}
* {@code (null, target, gname)}, where {@code gname} is a newly generated
* name. Automatically generated names are of the form
* {@code "Thread-"+}<i>n</i>, where <i>n</i> is an integer.
*
* @param target
* the object whose {@code run} method is invoked when this thread
* is started. If {@code null}, this classes {@code run} method does
* nothing.
*/
public Thread(Runnable target) {
{- -------------------------------------------
(1) java.lang.Thread.init() を呼び出すだけ.
---------------------------------------- -}
init(null, target, "Thread-" + nextThreadNum(), 0);
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.