C Given Array Job Id Arrival Time Duration Array 5 3 0 0 100 1 20 80 2 30 60 3 40 50 4 50 Q37187904

(C++)
Given an array with Job Id, Arrival Time & Duration:

Array[5][3]
0 0 100
1 20 80
2 30 60
3 40 50
4 50 40
Use simple array manipulation in C++ to implement “Shortest Time toCompletion First” & “Round Robin” with time slice 10 to showarrival start time, finish time and response time for each job.


Answer


`Hey,

Note: Brother in case of any queries, just comment inbox I would be very happy to assist all your queries

#include <iostream>
using namespace std;

// main function definition
int main()
{
// Matrix contains first column process ID, second column arrivaltime third column duration
int Array[5][3] = {{0, 0, 100}, {1, 20, 80}, {2, 30,

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.