• Post Reply Bookmark Topic Watch Topic
  • New Topic

Blocking the applet and main threads ?  RSS feed

 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!