Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i need help coding this program using c++. 2018 Fall CIS200- Program 4 Release date: November 26, 2018 Due date: December 3 and December 10,
i need help coding this program using c++.
2018 Fall CIS200- Program 4 Release date: November 26, 2018 Due date: December 3 and December 10, 2018 ram will simulate a processor using a binary heap priority queue. The jobs to be processed following arrival times with specific processing time units. will be arriving into the system on a random basis based on the Arrival Time Processing Time 3 +/-2 8 +/-2 13 +/-2 "Regular" jobs: A 10 +/- 1 25 +/-1 "Highest Priority" jobs: 30 +/-5 10 +/-2 Note: 5 +/- 1 is 4, 5, 6 4 + rand()%3 30 +/-5 is 25 to 35-) 25 + rand( )%11 To start there is one processor with a priority queue to hold all jobs that have not started. Upon arrival, a job will begin processing if no current job is executing or, if a job is currently in process, be placed on the priority queue based on processing time. Once a job starts executing it runs to completion unless a "Highest Priority" interrupts the running job. The interrupted job is removed from the processor and the remaining time is calculated and job placed back into the priority queue based on the new processing time. Data for each job: job type, overall job number, job type number, processing time You are to determine and capture a set of metrics that will determine how well the system is performing Sample Metrics: Queue size:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started