| | |
CPU scheduling algorithm
![]() |
•
•
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 |
action api array auto based beginner binary bitmap c++ c/c++ calculator challenge char class classes code coding compile console conversion count createcopyofanyfileinc delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game garbage givemetehcodez graph gui hmenu homeworkhelp homeworkhelper iamthwee ifstream input insert int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node noob output parameter pointer primenumbersinrange problem program programming project python random read recursion reference rpg sockets string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets






