Is Java thread id unique across multiple thread pools?

后端 未结 0 553
南笙
南笙 2021-02-05 11:44

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

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