diff --git a/Assignment5/hard_affinity.c b/Assignment5/hard_affinity.c index 9d07f01..53a1ff1 100644 --- a/Assignment5/hard_affinity.c +++ b/Assignment5/hard_affinity.c @@ -60,6 +60,7 @@ Queue *input_queue() { return queue; } +// """atomic""" functions int getTime() { pthread_mutex_lock(&time_mutex); int time = TIME; @@ -184,7 +185,7 @@ void *simulation(void *args) { process = process->prev_elem; } - // Begin printing the current job + // Begin simulating the current job process = sim_queue->end; if (sim_queue->size != 0) { print_buffer[cpu_id] = process->job;