Add some comments
This commit is contained in:
parent
fdd01ab0c9
commit
f93eba6eb9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user