промежуточный. исследую нити для запуска тестов.
This commit is contained in:
21
src/Common/ModesSupervisors/PackageModeSupervisor.java
Normal file
21
src/Common/ModesSupervisors/PackageModeSupervisor.java
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user