Skip to content

Commit 8a40974

Browse files
committed
bug
1 parent 4be80d1 commit 8a40974

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cfs.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ void *scheduler(void *args)
428428
//printf("%d\n", isAllpFinished(allp));
429429
while ( isAllpFinished(allp) == 0 )
430430
{
431-
printf("%d\n", isAllpFinished(allp));
431+
//printf("%d\n", isAllpFinished(allp));
432432

433433
pthread_mutex_lock(&lock2);
434434

@@ -441,7 +441,7 @@ void *scheduler(void *args)
441441
while (scheduler_mode == SCHEDULER_WAITING )
442442
pthread_cond_wait(&scheduler_cond_var, &lock2);
443443

444-
printf("Entered\n");
444+
// printf("Entered\n");
445445

446446
pthread_mutex_lock(&lock1);
447447

@@ -453,11 +453,12 @@ void *scheduler(void *args)
453453
pthread_cond_signal(&(cond_var_array[pcb.pid - 1]));
454454
//broadcast(cond_var_array, allp);
455455

456-
printArray(states_array, allp);
456+
//printArray(states_array, allp);
457457

458458
if (outmode == 3)
459459
{
460-
printf("Process with pid %d is selected for CPU\n", pcb.pid);
460+
//printf("Process with pid %d is selected for CPU\n", pcb.pid);
461+
//printf("Runquoue size %d\n", runqueue.currentSize);
461462
}
462463

463464
pthread_mutex_unlock(&lock2);

0 commit comments

Comments
 (0)