区别多线程类中的this与currentThread()
currentThread()函数返回的是“正在调用当前代码段的线程”
this 指代的是本类/实例
用以下代码进行区分:
package thisVScurrentThread;
/**
* PROJECT_NAME: Multi-thread Programming
* PACKAGE_NAME: thisVScurrentThread
*
* @author Jackhow Michael
* @time 01-26 2021 22:54
* @description: 区别thi.
原创
2021-01-26 23:40:03 ·
227 阅读 ·
0 评论