@@ -428,7 +428,7 @@ void *scheduler(void *args)
428
428
//printf("%d\n", isAllpFinished(allp));
429
429
while ( isAllpFinished (allp ) == 0 )
430
430
{
431
- printf ("%d\n" , isAllpFinished (allp ));
431
+ // printf("%d\n", isAllpFinished(allp));
432
432
433
433
pthread_mutex_lock (& lock2 );
434
434
@@ -441,7 +441,7 @@ void *scheduler(void *args)
441
441
while (scheduler_mode == SCHEDULER_WAITING )
442
442
pthread_cond_wait (& scheduler_cond_var , & lock2 );
443
443
444
- printf ("Entered\n" );
444
+ // printf("Entered\n");
445
445
446
446
pthread_mutex_lock (& lock1 );
447
447
@@ -453,11 +453,12 @@ void *scheduler(void *args)
453
453
pthread_cond_signal (& (cond_var_array [pcb .pid - 1 ]));
454
454
//broadcast(cond_var_array, allp);
455
455
456
- printArray (states_array , allp );
456
+ // printArray(states_array, allp);
457
457
458
458
if (outmode == 3 )
459
459
{
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);
461
462
}
462
463
463
464
pthread_mutex_unlock (& lock2 );
0 commit comments