Question: 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 immaterial. Assume only one CPU.

Priorities and numbers of processes can be kept small, just big enough to demonstrate the below listed 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.

Needed is a source code, an executable, and PDF screen shots of the output demonstrating the functionality listed above. If you use any data files as initial input, provide them also. C OR C++ are the languages to be used.

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!