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
Post a Comment