Results 1 to 2 of 2
  1. #1
    pinheiroa is offline Member
    Join Date
    Sep 2010
    Posts
    6
    Rep Power
    0

    Default How to detect deadlocks

    Hello!

    I'm wondering how to detect and terminate deadlocks.
    My first approach is to check how long each thread is running and after sometime (i know when they should end) simply kill it.
    So, is there a method to determine the thread running time? I'm googling for quite a while but with bi results.

    Thank you!

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    5

Similar Threads

  1. Deadlocks...which threads are locked?
    By jon80 in forum New To Java
    Replies: 2
    Last Post: 01-06-2011, 06:12 PM
  2. Detect keypresses without consol or GUI
    By somanayr in forum New To Java
    Replies: 7
    Last Post: 05-16-2010, 05:56 AM
  3. Detect new file entry
    By rdemon in forum Advanced Java
    Replies: 4
    Last Post: 01-08-2010, 02:24 AM
  4. Unable to detect OS name
    By neetu.jainvi@gmail.com in forum Advanced Java
    Replies: 1
    Last Post: 12-09-2009, 04:56 PM
  5. Detect loading of ImageIcon from URL?
    By barkster in forum Java Applets
    Replies: 1
    Last Post: 01-29-2008, 07:04 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •