Why initialValue of ThreadLocal doesn't increment my variabls?

前端 未结 0 532
梦如初夏
梦如初夏 2021-01-13 16:00

i\'m learning about Thread concurrent, i have ThreadID class, this is the code:

public class ThreadID {

private static volatile int nextID=0;

p         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题