This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]