MP5 Schedule Me!
All Data Structures Files Functions Enumerations Pages
libscheduler.h
Go to the documentation of this file.
1 
4 #ifndef LIBSCHEDULER_H_
5 #define LIBSCHEDULER_H_
6 
10 typedef enum {FCFS = 0, SJF, PSJF, PRI, PPRI, RR} scheme_t;
11 
12 void scheduler_start_up (int cores, scheme_t scheme);
13 int scheduler_new_job (int job_number, int time, int running_time, int priority);
14 int scheduler_job_finished (int core_id, int job_number, int time);
15 int scheduler_quantum_expired (int core_id, int time);
19 void scheduler_clean_up ();
20 
21 void scheduler_show_queue ();
22 
23 #endif /* LIBSCHEDULER_H_ */