日期:2014-05-20 浏览次数:20724 次
public class Thread extends Object implements Runnable
public Thread() public Thread(Runnable target) public Thread(Runnable target,String name) public Thread(String name)
Thread thread = new Thread();
/** * If this thread was constructed using a separate * <code>Runnable</code> run object, then that * <code>Runnable</code> object's <code>run</code> method is called; * otherwise, this method does nothing and returns. * <p> * Subclasses of <code>Thread</code> should override this method. * * @see #start() * @see #stop() * @see #Thread(ThreadGroup, Runnable, String) */ public void run() { if (target != null) { target.run(); } }