classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Working On Classpath


From: Thomas Zander
Subject: Re: Working On Classpath
Date: Thu, 27 May 2004 09:26:26 +0200
User-agent: KMail/1.6.2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 27 May 2004 04:20, Thomas Fitzsimmons wrote:
> AFAIK, Java apps. should die when all non-daemon
>
> > threads have stopped (i.e. the GC can still be running, as its a
> > daemon).
>
> Right, but we can't make all default threads daemons, or programs will
> exit right away.  The two non-daemon threads in a typical AWT program
> are EventDispatchThread and GtkMainThread.  I'm wondering if we should
> make GtkMainThread a daemon, and have the exit criteria for AWT programs
> be that all threads except EventDispatchThread are daemons, all
> EventQueues are empty, and all top-level windows have been disposed.

Having a jvm-reaper check if no events are present seems like a design that 
moves the logic to the wrong place.
Why not let the event-dispatch thread die when all top-level windows are 
disposed?

- -- 
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAtZgiCojCW6H2z/QRAuRQAKDDpTi4TDY2Mt2ByeSUhBriILQd6gCfVynj
gPBHDTjSC0wF/tVXboUn8+k=
=jy+Z
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]