You are to simulate a dispatcher using a priority queue system. new processes are to be

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: