摘要: 获取当前线程名称 1.使用Thread类中的方法getName() String getName() 返回该线程的名称 2.可以先获取到当前正在执行的线程,使用线程中的方法getNam()获取线程的名称 static Thread currentThread 返回对当前正在执行的线程对象的引用 设置 阅读全文
posted @ 2019-09-26 10:59 Doraon 阅读(109) 评论(0) 推荐(0)