| 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.
|
 |
 |
|
|
subject: Blocking the applet and main threads ?
|
|
|