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