Top


定義場所(file name)

jdk/src/share/classes/java/lang/Thread.java

説明(description)

    /**
     * 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.
     */

名前(function name)

    public Thread(Runnable target) {

本体部(body)

  {- -------------------------------------------
  (1) java.lang.Thread.init() を呼び出すだけ.
      ---------------------------------------- -}

            init(null, target, "Thread-" + nextThreadNum(), 0);
        }

This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.