Write a program that support all five scheduling algorithms using Java programming language. Your work should be implemented in object oriented approach. The program must have the following classes; -...


Write a program that support all five scheduling algorithms using Java programming<br>language. Your work should be implemented in object oriented approach. The program<br>must have the following classes;<br>- Process<br>- FCFS<br>- SJF<br>- SRTF<br>- RR<br>- Priority<br>- Main<br>Tips:<br>- A group of two students should complete the assignment.<br>- For each 24-hour late submission, 1 mark penalty counted.<br>- Copying/distribution is strictly prohibited. In such case, both sides will loss marks.<br>- Write necessary constructors and methods for all classes.<br>- The program should have an output as shown in below figure. The result of all<br>scheduling algorithms with their Gantt Chart are printed consecutively.<br>FCFS Scheduling Algorithm<br>Process Arrival Time Burst Time Priority Completion time kaiting time Turn Around Time<br>8<br>16<br>14<br>22<br>13<br>19<br>Average waiting time - 5.75<br>Average turn around time - 11.25<br>santt Chart:<br>P1|P2|P3|P4|<br>SJF Scheduling Algorithm<br>Process Arrival Time Burst Time Priority Completion time kaiting time Turn Around Time<br>3<br>8<br>22<br>8<br>20<br>14<br>11<br>Average waiting time - 5.25<br>Average turn around tine 18.75<br>santt Chart:<br>P1|P2|P4|P3|<br>

Extracted text: Write a program that support all five scheduling algorithms using Java programming language. Your work should be implemented in object oriented approach. The program must have the following classes; - Process - FCFS - SJF - SRTF - RR - Priority - Main Tips: - A group of two students should complete the assignment. - For each 24-hour late submission, 1 mark penalty counted. - Copying/distribution is strictly prohibited. In such case, both sides will loss marks. - Write necessary constructors and methods for all classes. - The program should have an output as shown in below figure. The result of all scheduling algorithms with their Gantt Chart are printed consecutively. FCFS Scheduling Algorithm Process Arrival Time Burst Time Priority Completion time kaiting time Turn Around Time 8 16 14 22 13 19 Average waiting time - 5.75 Average turn around time - 11.25 santt Chart: P1|P2|P3|P4| SJF Scheduling Algorithm Process Arrival Time Burst Time Priority Completion time kaiting time Turn Around Time 3 8 22 8 20 14 11 Average waiting time - 5.25 Average turn around tine 18.75 santt Chart: P1|P2|P4|P3|

Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here