Add some comments

This commit is contained in:
Isaac Shoebottom 2023-11-02 23:36:36 -03:00
parent fdd01ab0c9
commit f93eba6eb9

View File

@ -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;