[2116] in java-interest
Re: Wouldn't it be nice if...
daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Mon Sep 25 21:35:28 1995
Date: Mon, 25 Sep 1995 14:07:45 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: Russell Ethington <rethingt@lehman.com>
Cc: java-interest@java.Eng.Sun.COM
Hi Russell,
> 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.
There is one special thread called the "AWT Thread" which is needed
to handle window system events. If you block that thread, it will
affect all other applets.
Have fun,
Arthur van Hoff
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com