Is Java thread id unique across multiple thread pools?

后端 未结 0 1430
旧巷少年郎
旧巷少年郎 2021-02-05 11:31

I have multiple thread pools running each with 4 threads. Each thread locks some common resource based on a unique ID they provide. I am using Thread.currentThread().getId

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