How to check how many threads are waiting for a synchronized method to become unlocked
Posted
by MontyBongo
on Stack Overflow
See other posts from Stack Overflow
or by MontyBongo
Published on 2010-03-13T21:41:43Z
Indexed on
2010/03/13
21:45 UTC
Read the original article
Hit count: 312
Is there any way to check how many threads are waiting for a synchronized method to become unlocked?
I would like to know when the thread calls a synchronized method:
1) How many threads are already waiting to call the method?
2) Once the method is called how long it needed to wait for the method to become unlocked?
© Stack Overflow or respective owner