In a long-running program, the Timer is probably best created as a daemon thread (using the constructors that take a Boolean parameter to indicate daemon status), so it won't keep the VM alive.
在长时间运行的程序中,最好创建一个Timer守护线程(使用带有指示守护线程状态的参数的构造函数),从而它不会让VM活动。
In a long-running program, the Timer is probably best created as a daemon thread (using the constructors that take a Boolean parameter to indicate daemon status), so it won't keep the VM alive.
在长时间运行的程序中,最好创建一个Timer守护线程(使用带有指示守护线程状态的参数的构造函数),从而它不会让VM活动。
应用推荐