package 多线程技能1;
/**
* getId()方法:
* getId()方法用于取得线程的唯一标识
*/
public class T110 {
public static void main(String[] args) {
Thread thread=Thread.currentThread();
System.out.println(thread.getName()+" "+thread.getId());
}
}
getId()方法-T110
最新推荐文章于 2023-12-28 13:58:59 发布