use k
This commit is contained in:
parent
222e9cb303
commit
90dd5e4077
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ sched_worker(void *arg)
|
|||
// Vol car aucune tâche trouvée
|
||||
for(int i = 0, k = rand() % (s->nthreads + 1), target;
|
||||
i < s->nthreads; ++i) {
|
||||
target = (i + curr_th) % s->nthreads;
|
||||
target = (i + k) % s->nthreads;
|
||||
|
||||
if(s->bottom[target] != s->top[target]) {
|
||||
// Tâche trouvée
|
||||
|
|
Reference in a new issue