DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   CPU scheduling algorithm (http://www.daniweb.com/forums/thread59404.html)

shawinke Oct 26th, 2006 6:28 am
CPU scheduling algorithm
 
Hi all pls help me with the soln to this probelm, the catch is the interface (menu) needs to be Built in C++ as well.
any suggestions would be of great help as well.

thanks

It is a system written using a structured programming language (e.g. C, Turbo C) that simulates the following CPU Scheduling Algorithms:
• First Come First Serve
• Shortest Job First
• Round Robin
• Shortest Remaining Time First
The user must be given the option to choose from any of the algorithms (Menu). Jobs arrive in the queue through manual input with the following required information:

Job No. CPU Burst Time Arrival Time Status
1
2
3
4
5

Status can be Pending, Processing, Finished.

The system should be able to check for invalid inputs and provide appropriate error messages to the user.

The system then shows the movement of each job in the system (from the ready queue up to when it exits the system) plus drawing the GANTT Chart simultaneously.

At the end of the simulation, the system displays the following information:
• Waiting time for each job;
• Turnaround time for each job;
• Average waiting time for the system; and
• Average turnaround time for the system.

The system then asks the user if he wants to simulate the same algorithm, simulate another algorithm, or to quit the system.

Ancient Dragon Oct 26th, 2006 8:35 am
Re: CPU scheduling algorithm
 
Now that you posted the requirements of the program, what do you want from us? We will not write your program for you.


All times are GMT -4. The time now is 11:04 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC