no message

This commit is contained in:
2023-09-19 19:16:15 +03:00
parent 767fae2e53
commit b84e35a36b
2 changed files with 8 additions and 13 deletions

View File

@@ -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();
}