Question: this is a object oriented program in c++ assignment i need all the codes in visual studio Multi-processor scheduler Design, implement and test the simulation
this is a object oriented program in c++ assignment i need all the codes in visual studio
Multi-processor scheduler
Design, implement and test the simulation of a multi-processor scheduler.
This project is about designing and simulating a clock-driven quad-processor scheduler in an object-oriented manner. The scheduler consists of a multi-level job queue where each level follows a different scheduling algorithm viz. Priority, Shortest Job First (SJF) and First-come-first-serve (FCFS). These queues will be enqueued with PCBs. The PCBs can further be classified into Recurring and non-Recurring. These PCBs are generated randomly, based on the probability data provided in an input file.
Goals:
1. Design a PCB Hierarchy
2. Design and implement a multilevel queue for scheduling the PCBs/jobs for one CPU.
3. Scale the design to a quad processor keeping it generic for any number of processors.
4. Use an event-driven algorithm to implement the multi-processor scheduling.
5. Implement the project using object-oriented design.
In this project, well scale up all parts of the architecture i.e. well have many kinds of PCBs, a three-level scheduling queue and multiple CPUs. A brief description of each is provided below.
The output of the simulation should be planned such that sufficient details of the system are output at each instant. In the end, the final statistics like total number of PCBs processed, the maximum, minimum and average of waiting times, turnaround times and job times, number of processes that reached starvation time, etc. should be output. Some of the above can also be categorized viz. output processor-wise, PCB-category-wise. The output should go both to the screen and the output file.
Template:
<#PCB_type>
<Recursive_sleep_range val1 val2>
<Starvation_threshold_range val1 val2>
<Type_1 Probablity_Of_Creation Recursive Probablity_Of_Creation Non-Recursive Probablity_Of_Creation Burst_time_range val1 val2>
.
.
<Type_N Probablity_Of_Creation Recursive Probablity_Of_Creation Non-Recursive Probablity_Of_Creation Burst_time_range val1 val2>
Here, N = #PCB_type /2
Example file (.txt):
6
R-sl 10 30
Strv 10 15
Pr 15 R 1 NR 99 B 1 3
SJF 35 R 40 NR 60 B 5 7
FCFS 50 R 50 NR 50 B 1 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
