no message
This commit is contained in:
@@ -1,19 +1,16 @@
|
||||
package Common.ModesSupervisors;
|
||||
import Common.Global;
|
||||
import Common.Utils.InterruptThread;
|
||||
public class PackageModeSupervisor {
|
||||
protected Thread interruptThread = new InterruptThread(5000, () -> {System.exit(0);return null;});
|
||||
protected Thread interruptThread = new InterruptThread(5000, () -> {
|
||||
System.exit(0);
|
||||
return null;
|
||||
});
|
||||
protected int kernels = 4;
|
||||
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);
|
||||
// Pass_2021 pass = new PerformSapforTasksPackage();
|
||||
// pass.Do(Global.Home);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user