| | |
CPU scheduling algorithm
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2006
Posts: 1
Reputation:
Solved Threads: 0
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.
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.
![]() |
Similar Threads
- cpu scheduling algorithm please (Community Introductions)
- Simulation for CPU Scheduling (C++)
- cpu scheduling program (Java)
- CPU scheduling algorithms (RR, SJF, and Priority). (Java)
- CPU Scheduling Algorithm (Java)
- Cpu scheduling algorithm (C)
Other Threads in the C++ Forum
- Previous Thread: Please help me!
- Next Thread: C++ prime numbers
| Thread Tools | Search this Thread |
api array based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






