Threads and Monitors

7 October 2008

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.

Deadlocks

I hope you found this useful.

del.icio.us:Threads and Monitors  digg:Threads and Monitors  spurl:Threads and Monitors  wists:Threads and Monitors  simpy:Threads and Monitors  newsvine:Threads and Monitors  blinklist:Threads and Monitors  furl:Threads and Monitors  reddit:Threads and Monitors  fark:Threads and Monitors  blogmarks:Threads and Monitors  Y!:Threads and Monitors  smarking:Threads and Monitors  magnolia:Threads and Monitors  segnalo:Threads and Monitors  gifttagging:Threads and Monitors

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Threads and Monitors

Leave a Reply