java.util.TimerTask

Jeff Sturm jsturm@one-point.com
Thu Jun 19 14:27:00 GMT 2003


On 2003年6月19日, 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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /