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

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

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