SJF and SRTF scheduling programs with Gantt charts and captured output
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5v46dt7TVsHZxtoYC
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
Non-preemptive SJF
|
||||
|
||||
PID AT BT CT TAT WT
|
||||
P1 0 7 7 7 0
|
||||
P2 2 4 12 10 6
|
||||
P3 4 1 8 4 3
|
||||
P4 5 4 16 11 7
|
||||
|
||||
Average waiting time : 4.00
|
||||
Average turnaround time : 8.00
|
||||
|
||||
Gantt chart:
|
||||
| P1 | P3 | P2 | P4 |
|
||||
0 7 8 12 16
|
||||
Reference in New Issue
Block a user