Differences between Short Term Scheduler and Long Term Scheduler in operating system

0

 


Here is a comparison between the Short-term Scheduler (STS) and Long-term Scheduler (LTS) in operating systems :

FeatureShort-term Scheduler (STS)Long-term Scheduler (LTS)
PurposeSelects which process should be executed nextDecides which processes should be brought into memory and executed
Frequency of executionExecuted frequently, often several times per secondExecuted less frequently, usually once per several seconds or minutes
Job allocationAllocates jobs to the CPUAllocates jobs to the memory
Scheduling decisionsBased on the state of the processes in memoryBased on the queue of processes waiting for execution
CPU utilizationMaximizes CPU utilizationBalances CPU utilization with memory utilization
ResponsivenessFast response timeSlower response time
PerformanceHigh performanceModerate performance
LatencyLow latencyHigh latency
Task prioritizationPrioritizes tasks based on their current statePrioritizes tasks based on their priority level
Context switchingHigh rate of context switchingLow rate of context switching
Memory requirementsLow memory requirementsHigh memory requirements
Preemptive or Non-PreemptiveTypically preemptiveNon-preemptive
Interrupt handlingHandles interruptsDoes not handle interrupts
Task schedulingSchedules individual tasksSchedules entire processes
FairnessFair to all tasksFair to all processes

Note that the exact behavior and performance of the STS and LTS algorithms can vary based on the specific implementation and the workload being scheduled. Both algorithms play important roles in the efficient and effective operation of an operating system and work together to manage the resources of the system.

Post a Comment

0Comments
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !