//每个Thread都有一个id和name:
public class Test extends Thread{
@Override
public void run() {
System.out.println(“run”);
System.out.println(Thread.currentThread().getId());
System.out.println(Thread.currentThread().getName());
}
public static void main(String[] args) {
Thread thread = new Test();
thread.start(http://yes-esports.com/);
}
}