Thread
public Thread(Runnable target,
String name)
分配新的 Thread 对象。这种构造方法与 Thread(null, target, name) 具有相同的作用。
参数:
target - 其 run 方法被调用的对象。
name - 新线程的名称。
public Thread(Runnable target,String name)
分配新的 Thread 对象。这种构造方法与 Thread(null, target, name) 具有相同的作用。
参数:
target - 其 run 方法被调用的对象。若是this则是自身类的对象。
name - 新线程的名称。
1.这个类必须实现runable接口或集成thread类。
2.this 表示线程启动的时候调用这个Object的run方法。
3.mythread是新启动线程的名字。
还是多去看看JavaDoc吧。
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html
分配一个名字为mythread的线程到this这个线程组。this只的是当前线程组(默认)