From f93eba6eb936db5a03753fe68f4971f66f9d6cda Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Thu, 2 Nov 2023 23:36:36 -0300 Subject: [PATCH] Add some comments --- Assignment5/hard_affinity.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;