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

mysql - How to insert just year and month into date field? -

c# - Detect changes in ObjectSet in Entity Framework 4.0? -