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

python - Does anyone know how to configure the hunpos wrapper class on nltk? -

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