Computer Science Programming Homework

P1kachu·10/16/2014, 4:55:32 AM·2 votes·1,908 views

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.

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.

  4. A process status on GUI command (p#, priority and current state).

You are to turn in your source code, an executable, and screen shots of the output demonstrating the functionality listed above. If you use any data files as initial input, provide them also.

That's the instructions, my question is whether or not it's to be done in C or C++ or Java, instructions do not specifically say. Also, anyone who can provide code for this will earn thanks and RP.

2 Comments

Alljoy10/16/2014, 12:22:34 PM1 votes

Is this offer still up?