CS3413/Assignment4/lib/process.h

19 lines
355 B
C
Raw Normal View History

2023-10-26 15:58:58 -03:00
#ifndef PROCESS_H
#define PROCESS_H
2023-10-24 13:50:05 -03:00
typedef struct Process {
2023-10-26 15:58:58 -03:00
struct Process *prev_elem;
struct Process *next_elem;
2023-10-24 13:50:05 -03:00
char *username;
char job;
int arrival_time;
int duration;
2023-10-26 17:15:05 -03:00
int finish_time;
2023-10-24 13:50:05 -03:00
} Process;
Process *createProcess(char *username, char job, int arrival_time, int duration);
void destroyProcess(Process *node);
2023-10-26 15:58:58 -03:00
#endif //PROCESS_H