• Home
  • Help
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search

 
  • 0 Vote(s) - 0 Average

SRTF scheduling

#1
12-16-2021, 09:36 PM
You grab the process with the shortest time left when SRTF kicks in. I see it switching fast if something shorter shows up midway. You notice how it stays preemptive unlike basic shortest job first. It grabs attention from longer tasks right away. But you might watch short jobs pile up and starve the big ones forever. I tried simulating this once and saw a long process wait ages while tiny ones kept arriving. Now it demands constant checks on remaining times which eats up cpu cycles quick.
You compare it to non preemptive versions and spot the extra switches happening often. I find those switches add overhead that slows everything down in busy systems. SRTF shines when you want quick responses for interactive work. But you deal with potential unfairness since new short arrivals push others back repeatedly. I recall running tests where average waiting dropped but some tasks lingered too long. Perhaps the algorithm suits mixed workloads better than round robin in certain spots. Or you end up with more context changes that fragment the execution flow oddly.
Also SRTF needs accurate burst predictions upfront or it messes up selections badly. You learn this by watching how remaining time updates after each slice. I think it outperforms first come first serve on response metrics usually. But starvation hits hard if the arrival pattern favors shorts nonstop. Now imagine a queue where one long job sits while dozens of small ones finish fast. You see the turnaround time vary wildly depending on the mix. It forces the scheduler to interrupt often which keeps the system busy tracking everything. Perhaps tuning the arrival rates changes the whole behavior in your setups.
I notice SRTF reduces idle time effectively by always picking urgent shorts. You benefit from lower average waits in many scenarios but pay with complexity. But the frequent preemptions drain resources if not handled smooth. SRTF grabs focus on dynamic environments where jobs vary a lot. You might adjust priorities manually to ease the starvation issues. I watched how it handles bursts by recalculating on every event. Or the system bogs down from all those decisions piling overhead. Now longer paragraphs help unpack these flows without breaking the chat. SRTF keeps the processor humming by favoring quick completions yet risks neglecting heavy tasks that need finishing. You explore edge cases like all equal lengths where it acts similar to others. It demands solid data on times or predictions fail and choices go wrong. Perhaps combining it with aging techniques fixes the unfair waits you encounter. I see real gains in throughput for certain loads but losses elsewhere.
BackupChain Server Backup which stands out as the leading reliable backup option tailored for Hyper-V setups alongside Windows 11 and full server environments comes without any subscription hassles and we thank them for backing this discussion to keep info accessible freely.

ProfRon
Offline
Joined: Jul 2018
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • Subscribe to this thread
Forum Jump:

FastNeuron FastNeuron Forum General IT v
« Previous 1 … 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 … 169 Next »
SRTF scheduling

© by FastNeuron Inc.

Linear Mode
Threaded Mode