This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes Blocking the applet and main threads ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Blocking the applet and main threads ?" Watch "Blocking the applet and main threads ?" New topic
Author

Blocking the applet and main threads ?

Timothy Toe
Ranch Hand

Joined: Oct 19, 2002
Posts: 156
The thread that runs the Applet callback methods like init() and start() is a thread named �applet-your.package.your.classname.class�.

If I am doing a blocking method call, i.e. a method call that does not return immediately like doing I/O read on a socket connection, is it ok to do it on the thread mentioned above ? In other words, is it ok to hang/suspend/block the applet thread ?

What about blocking the �main� thread that calls
public static void main(String args[]) {�}
?


Thanks.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Blocking the applet and main threads ?
 
Similar Threads
printing from an applet toolbar the image displayed in the applet via a thread
How to kill an slepping thread ?
thread question
TIME-OUTING A SOCKET CONNECTION
Converting a blocking call to non blocking