1,Java并发--详解this与Thread.currentThread()的区别:https://blog.csdn.net/championhengyi/article/details/76664491
Thread.currnetThread()是指当前运行的线程,在比如在构造函数的时候是主线程
this表示当前对象的引用,有Thread1 ,Thread thread2 = new Thread(Thread1),this现在指的是thread1的引用,而且不活那种
Thread.currnetThread()是指当前运行的线程,在比如在构造函数的时候是主线程
this表示当前对象的引用,有Thread1 ,Thread thread2 = new Thread(Thread1),this现在指的是thread1的引用,而且不活那种