Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
How to check if a thread holds lock on a particular obj
Think about a scenario where you would have to find at run time that whether a thread has lock on a particular object e.g. find out whether thread Newhttp://javarevisited.blogspot.com/2010/10/how-to-check-if-thread-has-lock-on.html
Total Hits: 2231
Total Votes: 24 votes
Average Rating: 2.5 out of 5
Category: JAVA/Core JAVA
Description:
Think about a scenario where you would have to find at run time that whether a thread has lock on a particular object e.g. find out whether thread NewsReader has lock on NewsPaper object or not ?If this questions came in any interview then I would automatically assume that there could be at least two answer one is hard earned raw answer which programmer would like to figure out based on fundamentals and other could be some rarely used API calls which is available in java , by the way this is actually asked to me in an interview of one of the biggest global bank.
Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() ![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
4 |




16.67%

16.67%

16.67%

16.67%

16.67%