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
Thread.currentThread().getId