49 lines
783 B
C
49 lines
783 B
C
/*
|
|
Lakota Dolce
|
|
ProgHW05
|
|
December 5, 2024
|
|
Dr. Fuchs
|
|
*/
|
|
|
|
//Preprocessing
|
|
#include "my_queue.h"
|
|
|
|
|
|
//Function Prototypes
|
|
|
|
/**main
|
|
* @param: int argc - size of the argv array
|
|
* @param: char *argv[] - passed in values from the run command.
|
|
* @return: int value -> 0 for success, -1 for fail
|
|
*/
|
|
main (int argc, char *argv[]){
|
|
//Initialize
|
|
queue myqueue = newqueue();
|
|
float waitTime = 0;
|
|
float responseTime = 0;
|
|
float turnAroundTime = 0;
|
|
char * input = "";
|
|
|
|
|
|
//Take input for queue to use
|
|
|
|
//Get processes
|
|
//create process class to store processes in queue
|
|
|
|
|
|
//Call appropriate functions
|
|
//FCFS
|
|
//PP
|
|
|
|
//output the events
|
|
|
|
//print out
|
|
//Avg wait time
|
|
//Avg response
|
|
//Avg turn aroud
|
|
//CPU utilization
|
|
|
|
}
|
|
|
|
//Functions
|