Why initialValue of ThreadLocal doesn't increment my variabls?

前端 未结 0 535
梦如初夏
梦如初夏 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         


        
相关标签:
回答
  • 消灭零回复
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题