Question: Write function cpuScheduling to do the following IN C a . Return type void b . Empty parameter list c . Declare an array for

Write function cpuScheduling to do the following IN C
a. Return type void
b. Empty parameter list
c. Declare an array for the process IDs, data type int, initialized with
values 1,2,3,4,5(i.e., process)
d. Declare an array for the arrival times, data type int, initialized with
values 0,2,4,6,7(i.e., arrvTime)
e. Declare an array for the burst times, data type int, initialized with
values 8,5,10,2,3(i.e., burstTime)
f. Call function fcfs passing arguments
i. Array process
ii. Array arrvTime
iii. Array burstTime
g. Call function sjf passing arguments
i. Array process
ii. Array arrvTime
iii. Array burstTime

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!