This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java.util.TimerTask
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Erik Poupaert <erik dot poupaert at chello dot be>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 19 Jun 2003 10:27:45 -0400 (EDT)
- Subject: Re: java.util.TimerTask
On Thu, 19 Jun 2003, Erik Poupaert wrote:
> The fact that a task has been scheduled to run, doesn't keep the
> executable running. It exits anyway.
To be perfectly clear: you mean exit as in "fall off the end of main()"
and not exit as in "invoke System.exit(n)"?
The former won't exit as long as there are non-daemon threads running.
The timer scheduler is a non-daemon thread by default.
Jeff