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

This commit is contained in:
2023-10-14 02:30:31 +03:00
parent a2971e95da
commit 79848baaa1
9 changed files with 14 additions and 21 deletions

View File

@@ -24,8 +24,10 @@ public abstract class ThreadsPlanner {
protected Vector<Integer> activeThreads = new Vector<>();
protected Vector<Integer> waitingThreads = new Vector<>();
//--
public ThreadsPlanner(int wait_ms_in, int maxKernels_in) {
public ThreadsPlanner(int wait_ms_in) {
wait_ms = wait_ms_in;
}
public void setMaxKernels(int maxKernels_in){
maxKernels = maxKernels_in;
kernels = maxKernels;
}