如何在程序中运行计时器时运行进程。这是我的意思的示例布局。或者说可以有这样的布局吗?
__________________________________ | 8:00 | |@8:00 Job 1 arrives and start... | |@8:30 Job 2 arrives and wait... | |... | |... |
最佳答案
有多种方法可以做到这一点。这是一个。
Thread t42 = new Thread(new Runnable() {
public void run() {
myBackgroundMethod();
}
});
t42.setDeamon(true);
t42.start();
关于java - 定时器运行时处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9862985/