multithreading - How to find which thread currently owns the lock in java -


i have synchronized method in singleton class called many threads simultaneously. there java api available check thread owning lock ?

you perhaps print out thread.currentthread() in synchronized method.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -