CS3413/Assignment4/lib/process.h
2023-10-26 17:15:05 -03:00

19 lines
355 B
C

#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;
} Process;
Process *createProcess(char *username, char job, int arrival_time, int duration);
void destroyProcess(Process *node);
#endif //PROCESS_H