MP5 Schedule Me!
libscheduler/libscheduler.h
Go to the documentation of this file.
00001 
00004 #ifndef LIBSCHEDULER_H_
00005 #define LIBSCHEDULER_H_
00006 
00010 typedef enum {FCFS = 0, SJF, PSJF, PRI, PPRI, RR} scheme_t;
00011 
00012 void  scheduler_start_up               (int cores, scheme_t scheme);
00013 int   scheduler_new_job                (int job_number, int time, int running_time, int priority);
00014 int   scheduler_job_finished           (int core_id, int job_number, int time);
00015 int   scheduler_quantum_expired        (int core_id, int time);
00016 float scheduler_average_turnaround_time();
00017 float scheduler_average_waiting_time   ();
00018 float scheduler_average_response_time  ();
00019 void  scheduler_clean_up               ();
00020 
00021 void  scheduler_show_queue             ();
00022 
00023 #endif /* LIBSCHEDULER_H_ */
 All Data Structures Files Functions Enumerations