[2053] in java-interest
Wouldn't it be nice if...
daemon@ATHENA.MIT.EDU (Russell Ethington)
Fri Sep 22 13:42:18 1995
Date: Fri, 22 Sep 95 10:36:11 EDT
From: rethingt@lehman.com (Russell Ethington)
To: java-interest@java.sun.com
Cc: rethingt@lehman.com
I just learned that putting an Applet thread to sleep in the wrong
place can block other Applets of the same kind. For example:
// ...
Thread life;
// ...
public void paint() {
for (int i = 0; i < 100; i++) {
// ...
life.sleep(50);
}
}
So, I guess we're getting one event queue per Browser and not one
per Applet? Wouldn't it be nice if each Applet had it's own event
queue? Is this just a Windows NT/95 thing??
Or, is paint() synchronized and one Applet instance doing a paint()
locks out other Applet instances from entering paint()??? Hope not.
When the real doc's come out, I hope we'll be able to read in great
depth about how user events turn into method calls; which methods
are event "handlers" and which aren't; which are synchronized, etc.
Having fun,
-r
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com