[Top][All Lists]
[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-----
- Working On Classpath, Andrew John Hughes, 2004/05/23
- Working On Classpath, Andrew John Hughes, 2004/05/23
- Working On Classpath, Andrew John Hughes, 2004/05/23
- Re: Working On Classpath, Mark Wielaard, 2004/05/23
- Re: Working On Classpath, Andrew John Hughes, 2004/05/23
- Re: Working On Classpath, Thomas, 2004/05/24
- Re: Working On Classpath, Thomas Fitzsimmons, 2004/05/26
- Re: Working On Classpath, Andrew John Hughes, 2004/05/26
- Re: Working On Classpath, Thomas Fitzsimmons, 2004/05/27
- Re: Working On Classpath,
Thomas Zander <=
- Re: Working On Classpath, Thomas Zander, 2004/05/27
- Re: Working On Classpath, Michael Koch, 2004/05/27
- Re: Working On Classpath, Thomas Zander, 2004/05/27
- Re: Working On Classpath, Andrew John Hughes, 2004/05/27
- Re: Working On Classpath, Thomas Zander, 2004/05/27
- Re: Working On Classpath, Dalibor Topic, 2004/05/27
- Re: Working On Classpath, Andrew John Hughes, 2004/05/27
- Re: Working On Classpath, Dalibor Topic, 2004/05/27
- Re: Working On Classpath, Per Bothner, 2004/05/27
- Re: Working On Classpath, Thomas Zander, 2004/05/27