




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Priority definition. How to define a priority? System policies: Charge, job quantum, I/O External or internal definition. Pre-emptive vs. non-preemptive When a process arrives, should we remove the running process? (e.g. SRTF + Priority) Starvation When high priority jobs come at a frequency that a low priority job is blocked. Solution: add “aging”.
Each time a process is scheduled, Increase the priority of each pending task by 1. (could even be periodic) Priority: defined at admission time only. In pre-emptive scheduling. When a job is pre-empted, reset the priority. Guaranteed “No starvation”.
Processes may be grouped. System processes, interactive processes, batch processes etc. Ready queue may be made one for each group. Within a queue the scheduling can be one of the earlier defined scheduling (typically RR is used) The queues have associated priorities
Processes show a varying character Interactive or non-interactive Response requirement: high to low Processes in low level of priority may starve Solution: Add movement of processes from one queue to another Multilevel Feedback Queue Scheduling Movement can be due to Change in character of the process Aging
Real time jobs have an additional criterion Deadline, or time guarantee to execute a process Earliest Deadline First (EDF) Scheduling Schedule a task that has earliest deadline
Slack: Burst + Deadline –Current time Least slack first is optimal scheduling for meeting the deadline. In real time systems, the task are well behaved Easier to guess the burst accurately. Or, the tasks announce their burst time.
If task declare their CPU burst A task that finishes within the time is a good task. A task that leaves a lot of slack is an issue and can influence the admission policy. Denial of service?? Solution: “Charge” tasks based on their declared burst.
Determinism Responsiveness User control Reliability
External event and timings dictate the request of service. OS’s response depends on speed at which it can respond to interrupts whether the system has sufficient capacity to handle requests. Can we put an upper bound on time for OS response? Factor of the OS design. In non-RT this delay averages around 50 to 500 ms, Also is usually non-deterministic. In an RT, delay is usually guaranteed to have an upper-bound (usually small: few μsto 1-2ms.
The time for servicing the interrupt once it has been acknowledged. Comprises: Time to transfer control, (and context switch) and execute the ISR Depends upon Interrupt latency of the hardware (usually very small) Priority of interrupts. Classic Problem: Priority inversion. Priority of tasks. response time = f (responsiveness, determinism)