2023-09-18 23:22:17 +03:00
|
|
|
package Common.ModesSupervisors;
|
|
|
|
|
import Common.Utils.InterruptThread;
|
|
|
|
|
public class PackageModeSupervisor {
|
2023-09-19 19:16:15 +03:00
|
|
|
protected Thread interruptThread = new InterruptThread(5000, () -> {
|
|
|
|
|
System.exit(0);
|
|
|
|
|
return null;
|
|
|
|
|
});
|
|
|
|
|
protected int kernels = 4;
|
2023-09-18 23:22:17 +03:00
|
|
|
public void Start() {
|
|
|
|
|
try {
|
|
|
|
|
interruptThread.start();
|
2023-09-19 19:16:15 +03:00
|
|
|
// Pass_2021 pass = new PerformSapforTasksPackage();
|
|
|
|
|
// pass.Do(Global.Home);
|
2023-09-18 23:22:17 +03:00
|
|
|
} catch (Exception ex) {
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|