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 5 12 12 7
|
||||
P2 0 3 3 3 0
|
||||
P3 0 8 20 20 12
|
||||
P4 0 4 7 7 3
|
||||
|
||||
Average waiting time : 5.50
|
||||
Average turnaround time : 10.50
|
||||
|
||||
Gantt chart:
|
||||
| P2 | P4 | P1 | P3 |
|
||||
0 3 7 12 20
|
||||
Reference in New Issue
Block a user