MULTIPROCESSOR AND REAL TIME SCHEDULING.ppt

VEERANANVEERANAN 411 views 21 slides Jul 22, 2023
Slide 1
Slide 1 of 21
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21

About This Presentation

Subject - Operating System Design Principles
Topic - MULTIPROCESSOR AND REAL TIME SCHEDULING


Slide Content

MULTIPROCESSOR AND REAL
TIME SCHEDULING
Presentation & Delivery
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
GOVERNMENT ARTS COLLEGE, MELUR
PG. Department of Computer Science

Operating System
Multiprocessor
Real Time
Scheduling
Granularity
Design Issues
Process
Scheduling
Thread
Scheduling
Characteristics
of Real Time OS
Real Time
Scheduling
Deadline
Scheduling

Multiprocessor
Loosely coupled or distributed multiprocessor,
or cluster
Functionally Specialized Processors
Tightly Coupled Multiprocessor

Multiprocessor
Granularity
Independent
Parallelism
Coarse and Very Coarse
Grained Parallelism
Medium Grained
Parallelism
Fine Grained Parallelism

Multiprocessor
Design Issues
Assignment of
Processes to
processors
The use of
multiprogramming on
Indirected Processors
Process Dispatching

Multiprocessor
Process Scheduling
Assignment of
Processes to
processors
The use of
multiprogramming on
Indirected Processors
Process Dispatching

Multiprocessor
Thread Scheduling
Load Sharing
Gang Scheduling
Dedicated Processor
Assignment
Dynamic Scheduling

Operating System
Real Time Scheduling
Characteristics of Real Time OS
Real Time Scheduling

Real Time Scheduling
Realtimecomputingisbecominganincreasinglyimportant
discipline.
TheOSandinparticularthescheduler,isperhapsthemost
importantcomponentofrealtimesystem.
Examples
Currentapplicationsofrealtimesystemsincludecontrolof
laboratoryexperiments,processcontrolinindustrialplants,
robotics,airtrafficcontrol,telecommunications,andmilitary
commandsandcontrolsystems.
Benefits
Real-timesystemsaredesignedtoperformtasksthatmustbe
executedwithinprecisecycledeadlines(downtomicroseconds).

Real Time Scheduling
AHardrealtimetaskisonethatmustmeetitsdeadline;
otherwiseitwillcauseunacceptabledamageorafatal
errortothesystem.
ASoftrealtimetaskhasanassociateddeadlinethatis
desirablebutnotmandatory;itstillmakessenseto
scheduleandcompletethetaskevenifithaspassedits
deadline.

Real –Time Operating Systems
Characteristics of Real Time OS
Determinism
Responsiveness
User Control
Reliability
Fail –Soft Operation

Real time OS features:
Fastprocessorthreadswitch
Smallsize(withitsassociatedminimalfunctionality)
AbilitytorespondtoexternalInterruptsquickly
Multitaskingwithinterprocesscommunicationtoolssuchas
semaphores,signalsandevents.
Useofspecialsequentialfilesthatcanaccumulatedataatafastrate.
Pre-emptiveschedulingbasedonpriority
MinimizationofintervalsduringwhichInterruptsaredisabled.
Primitivestodelaytasksforaamountoftimeandtopause/resume
tasks
Specialalarmsandtimeout.

Real Time Scheduling:
Real time scheduling is one of the most active areas of research in
computer Science.
Whetherasystemperformsscheduleaabilityanalysis
Ifitdoes,whetheritisdonestatisticallyordynamically
Whethertheresultoftheanalysisitselfproducesascheduleorplan
accordingtowhichtasksaredispatchedatruntime

Real –Time Operating Systems
Real Time Scheduling
Static Table –Driven Approaches
Static Priority Driven Preemptive
Approaches
Dynamic planning based approaches
Dynamic Best Effort Approaches

Static Table –Driven Approaches
Theseperformastaticanalysisoffeasibleschedulesofdispatching.
Theresultoftheanalysisisaschedulethatdetermines,atruntime,
whenataskmustbeginexecution.

Static Table –Driven Approaches
Again,astaticanalysisisperformed,butnoscheduleisdrawnback.
Rather,theanalysisisusedtoassignprioritiestotask,sothata
traditionalprioritydrivenpre-emptiveschedulercanbeused.

Dynamic planning based approaches
Feasibilityisdeterminedatruntimeratherthanofflinepriortothe
startofexecution(statically).Anarrivingtaskisacceptedfor
executiononlyofitisfeasibletomeetit’stimeconstraints.Oneofthe
resultsofthefeasibilityanalysisisascheduleorplanthatisusedto
decidewhentodispatchthistask.

Dynamic Best Effort Approaches
Nofeasibilityanalysisisperformed.Thesystemtriestomeetall
deadlinesandabortsanystatedprocesswhosedeadlineismissed.

Thank You
&
Your Opportunity