0
Event simulation in C
That is my code so far: https://code.sololearn.com/c07Cr4894jRl/#c
1 Answer
0
Could someone help me with the statistic file? Your statistics file should contain the following:
1) Each queueâs average and maximum sizes
This includes the CPU Queue, both Disk Queues, and your Event Queue!
2)The Utilization of each component
Utilization -> how much time a component was actually in use, divided by the total amount of simulation time (time-in-use/total-simulation-time)
3)Average and Maximum response times of each component
Response Time -> amount of time spent at a given component
Example: If a process enters the CPU at time 5 and exits at time 20, the response time would be 20 - 5 = 15.
4)Throughput of each component
Throughput -> how many jobs were handled per Unit of time
Example: If the CPU executed 5 processes over a period of 100 units of system time, its throughput would be 5 / 100 = 0.05