Reputation: 3
I'm studying operating systems and have encountered conflicting information about preemptive scheduling, specifically regarding SRT (Shortest Remaining Time) scheduling. My question focuses on whether time slices are fundamentally required in preemptive scheduling.
Should we wait for the current time slice to complete before switching? Or should context switching happen immediately upon the new process's arrival?
Some sources say preemptive scheduling (including SRT) inherently requires time slices Others state that preemptive scheduling can operate at the clock cycle level without waiting for time slices
Process P1 is running (remaining time: 5 units) At time 1.5, Process P2 arrives (remaining time: 2 units)
Should P2 preempt P1:
Immediately at time 1.5? Or wait until the next time unit (2.0)?
Multiple operating systems textbooks Online resources AI assistants
But I'm getting different answers from each source. Can someone clarify this with authoritative sources or practical implementation details?
Upvotes: 0
Views: 31