CS3413/Assignment5/lib/process.h

20 lines
384 B
C
Raw Normal View History

2023-10-27 10:42:23 -03:00
#ifndef PROCESS_H
#define PROCESS_H
typedef struct Process {
struct Process *prev_elem;
struct Process *next_elem;
char *username;
char job;
int arrival_time;
int duration;
int finish_time;
2023-10-27 11:24:40 -03:00
int affinity;
2023-10-27 10:42:23 -03:00
} Process;
2023-10-27 11:24:40 -03:00
Process *createProcess(char *username, char job, int arrival_time, int duration, int affinity);
2023-10-27 10:42:23 -03:00
void destroyProcess(Process *node);
#endif //PROCESS_H