Заготовка планировщика.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user