CS3413/Assignment4/lib/process.h

18 lines
334 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;
} 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