The Artima Developer Community
Sponsored Link

Java Buzz Forum
Automatically detecting AWT event dispatch thread hangs

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Delap

Posts: 1154
Nickname: scottdelap
Registered: Sep, 2004

Client / Server application developer.
Automatically detecting AWT event dispatch thread hangs Posted: May 24, 2005 2:11 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Scott Delap.
Original Post: Automatically detecting AWT event dispatch thread hangs
Feed Title: ClientJava.com
Feed URL: http://www.clientjava.com/archives/wireless_mobile.rdf
Feed Description: Client/Desktop Related Java Development
Latest Java Buzz Posts
Latest Java Buzz Posts by Scott Delap
Latest Posts From ClientJava.com

Advertisement

Elliott has taken the event queue concept in AWT and added a useful timer mechanism to see when events are taking too long to process. This is similar to the idea I talked about recently. I could see the next step in this being adding listeners instead of dumping a stack trace. This mechanism could be used to have listeners adjust their processing to be more asynchronous and to trigger less events on the event queue.

Automatically detecting AWT event dispatch thread hangs
I mentioned Apple's "Spin Control" recently, which detects hung Cocoa applications. It doesn't work for Java applications because they're packed full of multithreaded goodness, and the main AppKit thread doesn't tend to get stuck. The problematic thread in a Java application is the AWT's event dispatch thread. Do too much work on that, and your GUI will become unresponsive.

Read: Automatically detecting AWT event dispatch thread hangs

Topic: Java 7 To Gain Native XML Data Support Previous Topic   Next Topic Topic: BPEL and Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use