Docsity

Lecture 38: Priority and Scheduling in Multi-core Operating Systems, Slides of Computer Science

Toggle sidebar
bg1
Objectives_template
file:///D|/...ary,%20Dr.%20Sanjeev%20K%20Aggrwal%20&%20Dr.%20Rajat%20Moona/Multi-core_Architecture/lecture%2038/38_1.htm[6/14/2012 12:14:21 PM]
Module 19: Multi-core computing Operating Systems
Lecture 38: Priority and Schedule
The Lecture Contains:
Issues With Priority
Aging With Priority
Adding Time Quantum: Round Robin Scheduling
RR Scheduling
Multilevel Queue Scheduling
Issues With Multilevel Queue
Scheduling in Real Time OS
EDF Examples
Possible Feasible Schedule
Least Slack First Scheduling
LSF Schedule
RT Scheduling
Characteristics of Real-Time (RT) Systems
Deterministic Response
Responsiveness
pf3
pf4
pf5
pf8

Partial preview of the text

Download Lecture 38: Priority and Scheduling in Multi-core Operating Systems and more Slides Computer Science in PDF only on Docsity!

Module 19: Multi-core computing Operating Systems

Lecture 38: Priority and Schedule

The Lecture Contains:

Issues With Priority

Aging With Priority

Adding Time Quantum: Round Robin Scheduling

RR Scheduling

Multilevel Queue Scheduling

Issues With Multilevel Queue

Scheduling in Real Time OS

EDF Examples

Possible Feasible Schedule

Least Slack First Scheduling

LSF Schedule

RT Scheduling

Characteristics of Real-Time (RT) Systems

Deterministic Response

Responsiveness

Module 19: Multi-core computing Operating Systems

Lecture 38: Priority and Schedule

Issues With Priority

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”.

Aging with Priority

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”.

Module 19: Multi-core computing Operating Systems

Lecture 38: Priority and Schedule

Multilevel Queue Scheduling

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

Module 19: Multi-core computing Operating Systems

Lecture 38: Priority and Schedule

Issues With Multilevel Queue

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

Scheduling in Real time OS

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

EDF Examples

Module 19: Multi-core computing Operating Systems

Lecture 38: Priority and Schedule

Least Slack First Scheduling

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.

LSF Schedule

RT Scheduling

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.

Module 19: Multi-core computing Operating Systems

Lecture 38: Priority and Schedule

Characteristics of Real-Time (RT) Systems

Determinism Responsiveness User control Reliability

Deterministic Response

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.

Responsiveness

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)