View RSS Feed

My Java Tips

Threads and Monitors in Eclipse

Rate this Entry
by , 05-21-2011 at 10:40 PM (3926 Views)
When you are working with multi threading where resources are locked and released, deadlock prevention becomes very important. To prevent starvation, proper lock and release mechanism has to be defined/implemented.

Eclipse’s debugger provides monitor information in the debug view. To use it, use the Show Monitors action which can be found in the Debug view drop down menu. It will show which threads are holding locks and which are waiting to acquire locks. The threads in red indicated deadlock case.

Name:  deadlock.jpg
Views: 711
Size:  22.1 KB

I hope you found this useful.

Submit "Threads and Monitors in Eclipse" to Facebook Submit "Threads and Monitors in Eclipse" to Digg Submit "Threads and Monitors in Eclipse" to del.icio.us Submit "Threads and Monitors in Eclipse" to StumbleUpon Submit "Threads and Monitors in Eclipse" to Google

Categories
Eclipse

Comments