View RSS Feed

My Java Tips

  1. Threads and Monitors in Eclipse

    by , 05-21-2011 at 11:40 PM (My Java Tips)
    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 ...
    Categories
    Eclipse