промежуточный. исследую нити для запуска тестов.

This commit is contained in:
2023-09-18 23:22:17 +03:00
parent 7033261882
commit 767fae2e53
4 changed files with 52 additions and 19 deletions

View File

@@ -0,0 +1,21 @@
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();
}
}
}