Заготовка планировщика.

This commit is contained in:
2023-09-26 22:57:18 +03:00
parent 6df3eb05ee
commit 0026701347
5 changed files with 118 additions and 7 deletions

View File

@@ -0,0 +1,19 @@
package SapforTestingSystem.SapforTestingPlaner;
import Common.Global;
import Common.Utils.Utils;
import SapforTestingSystem.ThreadsPlanner.ThreadsPlanner;
public class SapforTestingPlanner extends ThreadsPlanner {
public SapforTestingPlanner() {
super(2000, 4);
//--
for (int i = 1; i <= 20; ++i) {
int thread_number = i;
addThread(() -> {
for (int j=1; j<=4; ++j) {
Global.Log.Print("thread " + thread_number+" j="+j);
Utils.sleep(1000);
}
});
}
}
}