Thread.currentThread()方法
/**
* Returns a reference to the currently executing thread object.
*
* @return the currently executing thread.
*/
public static native Thread currentThread();
currentThread()方法返回的正是执行当前代码指令的线程引用。Thread.currentThread() 返回的是 一个实例,这个实例是当前Thread的引用。
https://www.cnblogs.com/kangxinxin/p/11585935.html