Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are to simulate a dispatcher using a priority queue system. New processes are to be entered using a GUI with priority included (numbering should
You are to simulate a dispatcher using a priority queue system. New processes are to be entered using a GUI with priority included (numbering should be automatic). Processes are also to be terminated by GUI command. Context switches are to be by command with the cause of the switch being either a blocking call, time slice exceeded or termination. Assume only one CPU. Priorities and numbers of processes can be kept small, just big enough to demonstrate the required functionality. You may pre-populate the queues initially from a data file. I am looking at the mechanism as you are NOT creating actual processes, just simulating them. Functionality to be provided by you: 1. Priority based Ready Queue(s). 2. Blocked list. 3. Output of complete system status after every context switch showing ready, blocked, and running processes.
must be done in c++
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