Discover a wealth of knowledge at Westonci.ca, where experts provide answers to your most pressing questions. Connect with a community of experts ready to help you find accurate solutions to your questions quickly and efficiently. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.

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: