Skip to content

fix: correct response time calculation for P4 in Round Robin example#155

Open
Aashish-gif wants to merge 1 commit into
codinggita:mainfrom
Aashish-gif:patch-3
Open

fix: correct response time calculation for P4 in Round Robin example#155
Aashish-gif wants to merge 1 commit into
codinggita:mainfrom
Aashish-gif:patch-3

Conversation

@Aashish-gif
Copy link
Copy Markdown

Summary

Corrected the Response Time (RT) calculation for process P4 in the Round Robin scheduling example.

Changes Made

  • Updated RT of P4 from 5 to 4

  • Verified Response Time formula:

    RT = First CPU Allocation Time - Arrival Time

Correct Calculation

For P4:

  • Arrival Time = 4
  • First CPU Allocation = 8

Therefore:
RT = 8 - 4 = 4

Impact

This fixes the inconsistency in the scheduling metrics table and aligns the example with standard Round Robin scheduling calculations.

## Summary
Corrected the Response Time (RT) calculation for process P4 in the Round Robin scheduling example.

## Changes Made
- Updated RT of P4 from `5` to `4`
- Verified Response Time formula:
  
  RT = First CPU Allocation Time - Arrival Time

## Correct Calculation
For P4:
- Arrival Time = 4
- First CPU Allocation = 8

Therefore:
RT = 8 - 4 = 4

## Impact
This fixes the inconsistency in the scheduling metrics table and aligns the example with standard Round Robin scheduling calculations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant