46 lines
773 B
C
46 lines
773 B
C
/*
|
|
* Process - process functions for Process prototypes
|
|
*
|
|
* Author: Lakota Dolce
|
|
*
|
|
* Course: CSCI 356
|
|
* Version 1.0
|
|
*/
|
|
|
|
#ifndef PROCESS_H_
|
|
#define PROCESS_H_
|
|
|
|
/*Needed attributes
|
|
int _id;
|
|
int _arrival;
|
|
int _cpu_time;
|
|
int _priority;
|
|
|
|
int _waitTime;
|
|
int _arrivalTime;
|
|
int _turnaroundTime;
|
|
*/
|
|
/*Needed Functions
|
|
void newProcess(int id, int arrivalT, int cpuT, int priority); //Paramaterized constructor
|
|
|
|
int GetID();
|
|
int GetArrival();
|
|
int GetCPUTime();
|
|
int GetPriority();
|
|
|
|
void SetID(id);
|
|
void SetArrival(arrival);
|
|
void SetCPUTime();
|
|
void SetPriority();
|
|
void SetWait();
|
|
void SetArrival();
|
|
void SetTurnAround();
|
|
|
|
void changePriority();
|
|
|
|
char * Tostring();
|
|
|
|
|
|
*/
|
|
|
|
#endif /* PROCESS_H_ */ |