22 lines
720 B
Java
22 lines
720 B
Java
|
|
package Common.ModesSupervisors;
|
||
|
|
import Common.Global;
|
||
|
|
import Common.Utils.InterruptThread;
|
||
|
|
public class PackageModeSupervisor {
|
||
|
|
protected Thread interruptThread = new InterruptThread(5000, () -> {System.exit(0);return null;});
|
||
|
|
public void Start() {
|
||
|
|
try {
|
||
|
|
interruptThread.start();
|
||
|
|
for (int i=1; i<=3; ++i){
|
||
|
|
Thread thread = new TestThread(i);
|
||
|
|
thread.start();
|
||
|
|
}
|
||
|
|
interruptThread.wait();
|
||
|
|
Global.Log.Print("INTERRUPT THREAD DONE");
|
||
|
|
// Pass_2021 pass = new PerformSapforTasksPackage();
|
||
|
|
// pass.Do(Global.Home);
|
||
|
|
} catch (Exception ex) {
|
||
|
|
ex.printStackTrace();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|