OPERATING SYSTEMS - INTRODUCTION

priyasoundar 257 views 77 slides Sep 12, 2020
Slide 1
Slide 1 of 77
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
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76
Slide 77
77

About This Presentation

This material will be useful for students who are taking operating system course.


Slide Content

OPERATING SYSTEMS
Prepared by,
Ms. S. Shanmuga Priya
Senior Assistant Professor,
Department of Computer Science and Engineering
New Horizon College of Engineering
Bangalore
Karnataka

•TEXTBOOK:
1.AbrahamSilberschatz,PeterBaerGalvinandGregGagne,
OperatingSystemConcepts,JohnWiley&Sons,Inc.,9th
Edition,2012,ISBN9781118063330.
•REFERENCEBOOK:
1.WilliamStallings,“OperatingSystems:InternalsandDesign
Principles”,EighthEdition,PrenticeHall,2015.
S. Shanmuga Priya, NHCE

MODULE 1
INTRODUCTION AND OPERATING
SYSTEM SERVICES
S. Shanmuga Priya, NHCE

INTRODUCTION
S. Shanmuga Priya, NHCE

What is an OperatingSystem?
■Operatingsystemgoals:
•Executeuserprogramsandmakesolvinguserproblemseasier
•Makethecomputersystemconvenienttouse
•Usethecomputerhardwareinanefficientmanner
■OS is a resource allocator
•Manages all resources
•Decides between conflicting requests for efficient and fair resource use
■OS is a control program
•Controls execution of programs to prevent errors and improper use of the
computer
S. Shanmuga Priya, NHCE

What is an OperatingSystem?Cont…
■Nouniversallyaccepteddefinition
■Aprogramthatactsasanintermediarybetweenauserofacomputerand
thecomputerhardware
■“Everythingavendorshipswhenyouorderanoperatingsystem”isgood
approximation
•Butvarieswildly
■“Theoneprogramrunningatalltimesonthecomputer”isthekernel.
Everythingelseiseitherasystemprogram(shipswiththeoperatingsystem)or
anapplicationprogram
S. Shanmuga Priya, NHCE

■Computersystemcanbedividedintofourcomponents
•Hardware–providesbasiccomputingresources
CPU,memory,I/Odevices
•Operatingsystem
Controlsandcoordinatesuseofhardwareamongvariousapplicationsandusers
•Applicationprograms–definethewaysinwhichthesystemresourcesare
usedtosolvethecomputingproblemsoftheusers
Wordprocessors,compilers,webbrowsers,databasesystems,videogames
•Users
People,machines,othercomputers
Computer SystemStructure
S. Shanmuga Priya, NHCE

Four Components of a ComputerSystem
S. Shanmuga Priya, NHCE

•WhatistheProgram?
•Aprogramcontainsasetofinstructionsandasetofinstructionperform
somespecifictaskfortheuser.
•Aprogramisstoredonsecondarystorage.Forexample,aprogramisstored
onaharddiskinthecomputer.
•Whenweexecutetheprogram,theprogramconvertsintotheprocess.
•Whatistheprocess?
•Theprocessistheprograminexecution.
•Howisaprogramconvertedintotheprocess?
•Theprogramcanbeconvertedintotheprocessbyfollowingthreeactions;
–Compiler
–Linker
–Loader
S. Shanmuga Priya, NHCE

ComputerStartup
■Bootstrapprogramisloadedatpower-uporreboot
•TypicallystoredinROMorEPROM,generallyknownasfirmware
•Initializesallaspectsofsystem
•Loadsoperatingsystemkernelandstartsexecution
S. Shanmuga Priya, NHCE

Computer SystemOrganization
■Computer-system operation
•One or more CPUs, device controllers connect through common bus
providing access to shared memory
•Concurrent execution of CPUs and devices competing for memory cycles
S. Shanmuga Priya, NHCE

S. Shanmuga Priya, NHCE

Single vs Multi Processor
System
S. Shanmuga Priya, NHCE

MULTI PROCESSOR –BLADE
SERVER
S. Shanmuga Priya, NHCE

DUAL CORE
DUAL CORE DESIGN
Ithascombinedtwoprocessorsandtheir
cachesandcachecontrollersontoasingle
integratedcircuit(siliconchip).
S. Shanmuga Priya, NHCE

QUICK QUIZ
What is operating system?
a) collection of programs that manages hardware resources
b) system service provider to the application programs
c) link to interface the hardware and application programs
d) all of the mentioned
ANS: d
S. Shanmuga Priya, NHCE

OPERATING SYSTEM STRUCTURES
S. Shanmuga Priya, NHCE

SAMPLE QUESITON
Explainmultiprogrammingandtimesharing
operating systems. (8 Marks)
S. Shanmuga Priya, NHCE

■Multiprogrammingneededforefficiency
•SingleusercannotkeepCPUandI/Odevicesbusyatalltimes
•Multiprogrammingorganizesjobs(codeanddata)soCPUalwayshasoneto
execute
•Asubsetoftotaljobsinsystemiskeptinmemory
•Onejobselectedandrunviajobscheduling
•Whenithastowait(forI/Oforexample),OSswitchestoanotherjob
■Timesharing(multitasking)islogicalextensioninwhichCPUswitchesjobsso
frequentlythatuserscaninteractwitheachjobwhileitisrunning,creating
interactivecomputing
•Responsetimeshouldbe<1second
•Eachuserhasatleastoneprogramexecutinginmemoryprocess
•IfseveraljobsreadytorunatthesametimeCPUscheduling
•Ifprocessesdon’tfitinmemory,swappingmovestheminandouttorun
•Virtualmemoryallowsexecutionofprocessesnotcompletelyinmemory
S. Shanmuga Priya, NHCE

Memory Layout for MultiprogrammedSystem
S. Shanmuga Priya, NHCE

MULTI TASKING
Multiprocessingistheabilityof
anoperatingsystemtoexecute
more than one process
simultaneouslyonamulti
processormachine.
Multitaskingistheabilityofan
operatingsystemtoexecute
more than one task
simultaneouslyonasingle
processormachine.
S. Shanmuga Priya, NHCE

OPERATING SYSTEM OPERATIONS
S. Shanmuga Priya, NHCE

SAMPLE QUESTIONS
•Whyisdualmodeoperationsystemrequired?
Explain.(4Marks)
•Defineanoperatingsystem?Whatissystem’s
viewpointofanoperatingsystem?Explainthedual
modeoperationofanoperatingsystem.(10Marks)
•Explaintheoperatingsystemoperationswithsuitable
examples.(10Marks)
S. Shanmuga Priya, NHCE

•Writeaboutthedualmodeandmulti-mode
operationsinoperatingsystem.(6Marks,
MakeupExam,Jan2018)
SAMPLE QUESTIONS
S. Shanmuga Priya, NHCE

KERNEL
•DifferenceBetweenKernelandOperatingSystem
•Operatingsystemissystemprogramthatrunsonthecomputertoprovide
aninterfacetothecomputerusersothattheycaneasilyoperateonthe
computer.
•Kernelisalsoasystemprogramthatcontrolsallprogramsrunningonthe
computer.
•Kernelisbasicallyabridgebetweensoftwareandhardwareofthesystem.
•Thebasicdifferencethatdistinguisheskernelandoperatingsystemisthat:
OSisthepackageofdataandsoftwarethatmanagestheresourcesof
thesystem,andthekernelistheimportantprogramintheoperating
system.
Note:Shellistheinterfacethatallowsthe
userstocommunicatewiththekernel.
S. Shanmuga Priya, NHCE

ModernOSareInterruptDriven.
OSistriggeredintwoways:
i)SoftwareInterrupts(akaexceptions/traps)
-Causedbyexecutinganinstruction
-Ex:DividebyZeroerror
ii)HardwareInterrupts
-Triggerfromsomehardwaredevice
-Ex:whenadiskblockhasbeenreadorwritten
Aninterruptserviceroutineisprovidedthatisresponsiblefordealingwiththe
interrupt.
Softwareerrororrequestcreatesexceptionortrap
•TRAPisasoftwaregeneratedinterruptcausedeitherbyanerrororbyaspecific
requestfromuserprogramtoanOSservicetobeperformed
Ex:Divisionbyzero
S. Shanmuga Priya, NHCE

TYPES OF INSTRUCTIONS
NORMAL INSTRUCTIONS PRIVILEGED INSTRUCTIONS
Example
ADD
SUB
Example
Initiate I/O
Switch state or contexts
Load/Save from protected memory
S. Shanmuga Priya, NHCE

PROBLEMS IN
MULTIPROGRAMMING SYSTEM
•Oneerroneousprogrammightmodifyanother
program,dataofanotherprogram,oreventheOS
itself.
•NeedtoensureproperexecutionofOS
•MustdistinguishbetweenOSCodeandUser-
definedCode
•Withoutprotectionagainstthesesortsoferrors,
eitherthecomputermustexecuteonlyoneprocess
atatimeoralloutputmustbesuspected
•A properlydesigned
operatingsystemmust
ensurethatanincorrect(or
malicious)programcannot
causeotherprogramsto
executeincorrectly.
S. Shanmuga Priya, NHCE

SOLUTION????
Introduce different modes while
executing instructions
S. Shanmuga Priya, NHCE

MODES
USER MODE KERNEL MODE
Processorexecutes“normal
instructions”intheuser’s
program
Processorexecutesboth“normal
andprivilegedinstructions”
Processorswitchestokernel
mode,andtheOSperformsa
service
Under user mode
Encountering Privileged Instruction
User-to-kernelswitchsavesthe
informationnecessarytocontinue
theexecutionoftheuserprocess
NOTE:
OperatingSystemisaprocessthatrunsin
kernelmode
S. Shanmuga Priya, NHCE

HOW/WHEN USER PROCESS
CAN ENTER TO KERNEL
MODE (invoke OS)?
WHEN?? HOW!!!
SYSTEMCALLS
-SoftwareInterrupts
-SetoffunctionswhichtheOSsupportsandauserprocesscouldinvokeany
ofthesystemcallstogetinformationortoaccesshardwarethatarewithinthekernel
space.
-Direct“call”fromauserprogram
-Ex:open()toopenafile,exec()torunanewprogram
S. Shanmuga Priya, NHCE

QUICK QUIZ
•To access the services of operating system, the
interface is provided by the:
•A.system calls
•B.API
•C.library
•D.assembly instructions
ANS: A
S. Shanmuga Priya, NHCE

Approach used to differentiate among various modes
of execution
DUAL-MODE OPERATION
-Used in modern OS
-Dual Mode: Helps in protecting the OS from errant
user and from one another
-Implementation : Hardware-based
Dual-Mode Operation Multi-Mode Operation
S. Shanmuga Priya, NHCE

QUICK QUIZ
•Which one of the following error will be
handle by the operating system?
•A.power failure
•B.lack of paper in printer
•C.connection failure in the network
•D.all of the mentioned
ANS: D
S. Shanmuga Priya, NHCE

Transition from User to KernelMode
ModeBitBitattachedtothehardwareofthe
computertoindicatethecurrentmode
0Kernel
1User
NeedforbitHelpstodistinguishbetweenUser
TaskorOSTask
S. Shanmuga Priya, NHCE

How transition takes place?
System Boot Time Kernel Mode (Bit = 0)
OS is loaded and starts user application User Mode (Bit = 1)
On occurrence of trap or interrupt Hardware switches
from user mode to kernel mode
USER PROGRAM

App
Operating System
system call
(write to STDOUT)
device
driver
USER PROGRAM
S. Shanmuga Priya, NHCE

SUMMARY OF DUAL MODE OPERATION
S. Shanmuga Priya, NHCE

MULTI-MODE OPERATION
•Conceptofmodescanbeextendedbeyondtwo,
requiringmorethanasinglemodebit.
•CPUsthatsupportvirtualizationuseoneofthese
extrabitstoindicatewhentheVirtualMachine
Manager,VMM,isincontrolofthesystem.
•TheVMMhasmoreprivilegesthanordinaryuser
programs,butnotsomanyasthefullkernel.
S. Shanmuga Priya, NHCE

How to prevent User Process
taking too much of Kernel Time?
Implement a Timer
Need: Used to prevent user
program from running too
long
PROBLEM???
User Process taking too much of Kernel Time
OS must maintain control over the CPU
S. Shanmuga Priya, NHCE

TIMER
IMPLEMENTATION
•Userprogrammustnotstruckinaninfinitelooporfailtocallsystem
servicesandneverreturncontroltotheOS
•Beforethekernelbeginsexecutingusercode,atimerissettogeneratean
interrupt
•Timercanbesettointerruptthecomputerafteraspecifiedperiodoftimeeither
fixed(ex:1/60sec)orvariable(from1msecto1sec)
•Variabletimerisgenerallyimplementedbyafixed-rateclockandacounter
•OSsetsthecounter
•Everytimetheclockticks,thecounterisdecremented
•Whenthecounterreaches0,aninterruptoccurs
•Beforeturningthecontroltotheuser,theOSensuresthatthetimerissetto
interrupt
•Ifthetimerinterrupts,controltransfersautomaticallytotheOS,
treatingtheinterruptasfatal
S. Shanmuga Priya, NHCE

KERNEL DATA STRUCTURES
OBJECTIVE: To learn about the Operating System
Implementation
-the way the data are structured
in the system
S. Shanmuga Priya, NHCE

SAMPLE QUESTION(S)
Listoutthevariousdatastructuresthatareused
intheimplementationofanoperatingsystem.
Explainthesamewithanexampleforeach.
Withdescriptionlistoutthekerneldata
structures.(6Marks)(MakeupExam–Jan
2018)
S. Shanmuga Priya, NHCE

•Lists
–Singly linked list
–Doubly linked list
–Circularly linked list
•Stacks
–Push
–Pop
•Queues
–Enqueue
–Dequeue
•Trees
S. Shanmuga Priya, NHCE

COMPUTING ENVIRONMENTS
S. Shanmuga Priya, NHCE

SAMPLE QUESTIONS
1.Whatismeantbycomputingenvironment?Explainthevariouscomputing
environmentswithsuitableexamples.(10Marks)
2.Writeabriefnotesonthefollowing:(10Marks)
a)MobileComputing
b)DistributedSystems
c)Client-ServerComputing
d)CloudComputing
3.WhatisanOperatingSystem?ExplainReal-TimeOperatingSystemwithit
types.Supportyouranswerwithsuitableexamples.(10Marks)
4.Howtheoperating-systemcomponentsareusedinvarietyofcomputing
environment?(10Marks)
5.Summarizehowoperatingsystemsareusedinavarietyofcomputing
environments.(7Marks,MakeupExam,Jan2018)
S. Shanmuga Priya, NHCE

•What ismeantbyComputing
Environment?
–ComputingEnvironmentisacollectionof
computerswhichareusedtoprocessandexchange
theinformationtosolvevarioustypesof
computingproblems.
S. Shanmuga Priya, NHCE

EVOLUTION
•Non-InteractiveComputingEnvironments
•InteractiveComputingEnvironments
•Real-Time,DistributedandEmbedded
Environments
•ModernComputingEnvironments
S. Shanmuga Priya, NHCE

•Non-InteractiveComputingEnvironments
–UsersubmitsprogramanddatatoOS;userdoes
notinteractwithcomputation
–Computationsinformofjob
–OSfocusesonefficientuseofresources
•InteractiveComputingEnvironments
–Usermayinteractwithcomputation
–OSdealswithexecutionofprograms
–OSfocusesonprovidingquickresponseto
subrequestsmadetoprocesses
S. Shanmuga Priya, NHCE

•Real-TimeComputingEnvironment
–Areal-timecomputationhasspecifictimeconstraints
–OSinreal-timeenvironmentensurescomputations
completewithintimeconstraints
•DistributedComputingEnvironment
–Enablesacomputationtouseresourceslocatedinseveral
computersystemsthroughanetwork
•EmbeddedComputingEnvironment
–Computersystemisapartofaspecifichardwaresystem
andrunscomputationthatcontrolthesystem.
–OShastomeetthetimeconstraintsarisingfromthe
natureofthesystembeingcontrolled
S. Shanmuga Priya, NHCE

S. Shanmuga Priya, NHCE

Types of Computing Environment
•Mobile Computing
•Distributed Systems
•Client-Server Computing
•Peer-to-Peer (P2P)
•Virtualization
•Cloud Computing
•Real-Time Embedded Systems
S. Shanmuga Priya, NHCE

TRADITIONAL COMPUTING
Traditional Computing
Early days Computing Current Trend Computing
PCsconnectedtoanetwork,terminals
attachedto mainframe or
minicomputersprovidingbatchand
timesharing
-Nowportalsallowingnetworkedand
remotesystemsaccesstosame
resources
-HomeNetworksUsesingle
system,withmodems,withfirewalls
S. Shanmuga Priya, NHCE

MOBILE COMPUTING
•Referstocomputingonhandheldsmartphonesandtablet
computers.
•PhysicalFeatures
–PortableandLightweight
–Historically,comparedwithdesktopandlaptop
•UniqueFeatures
–Additionalbuilt-insensors,suchasGPS(GlobalPositioning
System)Chipsusefulfornavigation
•Example,tellinguserswhichwaytowalkordriveorperhapsdirecting
themtonearbyservices,suchasrestaurants.
–Accelerometers
•Allowsamobiledevicetodetectitsorientationwithrespecttothe
groundandtodetectcertainotherforces,suchastiltingandshaking
•Usedingaming
S. Shanmuga Priya, NHCE

•Comparedwithdesktopandlaptop:
–Limitedin
•StorageCapacity,
•MemoryCapacity,and
•ComputingPower
–GaveupScreenSize
•Generallyuses
–SmallerandSlowerProcessorswithfewerprocessing
cores(thanfoundintraditionalPCs),thatconsumeless
batterypowerandproducelessheat.
MOBILE COMPUTING Cont…
S. Shanmuga Priya, NHCE

•TypicallyconnecttotheInternetusingwirelessnetworking
(IEEE802.11)orcellulartelephonetechnology
•Today,mobilesystemsareusednotonlyfore-mailandweb
browsingbutalsofor
–playingmusicandvideo,
–readingdigitalbooks,
–takingphotos,and
–recordinghigh-definitionvideo
•Twooperatingsystemscurrentlydominatemobilecomputing:
AppleiOSandGoogleAndroid.
MOBILE COMPUTING Cont…
S. Shanmuga Priya, NHCE

DISTRIBUTED SYSTEMS
•DistributedSystemsconsistof
–multiple,possiblyheterogeneous,
computersconnectedtogetherviaa
networkandcooperatinginsome
way,form,orfashion.
–Dependsonnetworkingfortheir
functionality
•Mayvaryinprotocolsused,
distancesbetweennodes,transport
•TCP/IPisthecommonnetwork
protocolused
•NETWORK isacommunicationpath
betweentwoormoresystems
•Distributethecomputationamong
severalphysicalprocessors.
S. Shanmuga Priya, NHCE

Networkischaracterizedbasedonthedistancebetweentheir
nodes
i)LAN–LocalAreaNetwork,connectscomputeswithina
room,afloor,orabuilding
ii)MAN–MetropolitanAreaNetwork,linksbuildings
withinacity
iii)WAN–WideAreaNetwork,linksbuildings,cities,or
countries
iv)PAN-PersonalAreaNetwork,suchastheBluetooth
connectionbetweenyourPC,phone,headset,car,etc.
DISTRIBUTED SYSTEMS Cont…
S. Shanmuga Priya, NHCE

•NETWORK OPERATING SYSTEM
OSthatprovidesfeaturessuchassharingofresources
–Shared resources may include:
»Files,
»CPU Cycles,
»RAM,
»Printers etc.,
Access to a shared resource increases:
»Computation Speed,
»Functionality,
»Data Availability, and
»Reliability
•DISTRIBUTEDOPERATINGSYSTEM
-DifferentOScommunicatecloselyenoughtoprovidetheillusion
thatonlyasingleOScontrolsthenetwork
DISTRIBUTED SYSTEMS Cont…
S. Shanmuga Priya, NHCE

•Client/Servercomputingisacomputingmodel
inwhichclientandservercomputers
communicatewitheachotherovera
network.
•Isaformofspecializeddistributedsystem.
CLIENT-SERVER COMPUTING
S. Shanmuga Priya, NHCE

CLIENT-SERVER COMPUTING Cont…
•ClientAclientisacomputingdevicethat
initiatescontactwithaserverinorderto
makeuseofashareableresource
•ServerAservertakesrequestsfromclient
computersandsharesitsresources,
applicationsand/ordatawithoneormore
clientcomputersonthenetwork
–Example:
•Web-Server
•DatabaseServer
S. Shanmuga Priya, NHCE

CLIENT-SERVER COMPUTING Cont…
S. Shanmuga Priya, NHCE

•Serversystemscanbebroadlycategorizedascomputeserversandfile
servers:
•Compute-ServerSystem
–ClientSendarequesttoperformanaction(forexample,readdata).
–ServerExecutestheactionandsendstheresponse(result)tothe
client.
–Example:Serverrunningadatabasethatresponsetotheclientrequests
forthatdata
•File-ServerSystem
–providesafile-systeminterfacewhereclientscan
•Create,
•Update,
•Read,and
•Deletefiles.
–Example:WebServerthatdeliversfilestoclientsrunningweb
browsers.
CLIENT-SERVER COMPUTING Cont…
Problem: Server Bottleneck
S. Shanmuga Priya, NHCE

FACEBOOK SERVER
S. Shanmuga Priya, NHCE

S. Shanmuga Priya, NHCE

PEER –TO –PEER (P2P) COMPUTING
•Anothermodelofdistributedsystem
•P2Pdoesnotdistinguishclientsandservers
•Insteadallnodesareconsideredpeers,mayeachactasclient,serveror
both
•NodemustjoinP2Pnetwork,toparticipateinP2Psystem
•Howanodecanjoin?
•Registersitsservicewithcentrallookupserviceonnetwork,or
•Broadcastrequestforserviceandrespondtorequestsforservicevia
discoveryprotocol
•ExamplesincludeNapsterandGnutella
•Advantage
–Eliminatesserverbottleneckthatexistsinclient-serversystem
S. Shanmuga Priya, NHCE

Skypeusesacentralservertolocateadesiredpeer,andthen
furthercommunicationispeertopeer
Skypeusesahybridpeer-to-peerapproach.Itincludesa
centralizedloginserver,butitalsoincorporatesdecentralized
peersandallowstwopeerstocommunicate.
PEER –TO –PEER (P2P) COMPUTING Cont…
S. Shanmuga Priya, NHCE

VIRTUALIZATION
•TerminologiesUsed:
–Host
–Guest
•Allowsoneormore"guest"operatingsystemstorunonvirtualmachineshostedby
asinglephysicalmachineandthevirtualmachinemanager
•Usefulforcross-platformdevelopmentandsupport
•Forexample,astudentcouldrunUNIXonavirtualmachine,hostedbyaVirtual
MachineManager(VMM)onaWindowsbasedpersonalcomputer
•Example:Thestudentwouldhavefullrootaccesstothevirtualmachine,andifit
crashed,theunderlyingWindowsmachineshouldbeunaffected
•SystemCallshavetobecaughtbytheVMMandtranslatedinto(different)system
callsmadetotherealunderlyingOS
•Disadvantage:CanslowdownprogramthathavetorunthroughtheVMMS. Shanmuga Priya, NHCE

ThatapplicationranoneormoreguestcopiesofWindowsorothernativex86
operatingsystems,eachrunningitsownapplications.
Windowswasthehostoperatingsystem,andtheVMwareapplicationwas
thevirtualmachinemanagerVMM.TheVMMrunstheguestoperating
systems,managestheirresourceuse,andprotectseachguestfromtheothers.
VMware
S. Shanmuga Priya, NHCE

CLOUD COMPUTING
•Cloudcomputingisatypeofcomputingthatdelivers
–computing,
–storage,and
–evenapplicationsasaserviceacrossanetwork
•Logicalextensionofvirtualization
•Example:Dropbox,Gmail
–AmazonElasticComputeCloud(EC2)facility
•Hasthousandsofservers,
•MillionsofVirtualMachines,and
•Petabytesofstorageavailableforusebyanyoneonthe
Internet.
•Userspaypermonthbasedonhowmuchofthose
resourcestheyuse.
S. Shanmuga Priya, NHCE

•TypesofCloudComputing
–PublicCloud-Availabletoanyonewillingtopayforthe
service.
–PrivateCloud-Runbyacompanyforinternaluseonly.
–HybridCloud-Acloudwithbothpublicandprivate
components.
–SoftwareasaService(SaaS)-Applicationssuchasword
processorsavailableviatheInternet(Ex:GoogleApps)
–PlatformasaService(PaaS)-Asoftwarestackavailable
forapplicationuse,suchasadatabaseserver
–InfrastructureasaService(IaaS)-Serversorstorage
availableontheInternet,suchasbackupservers,photo
storage,orfilestorage.
–Serviceprovidersmayprovidemorethanonetypeof
service
CLOUD COMPUTING Cont…
S. Shanmuga Priya, NHCE

Cloudsmaycontain
-Thousandsofphysicalcomputers,
-Millionsofvirtualones,and
-Petabytesoftotalstorage
S. Shanmuga Priya, NHCE

REAL-TIME EMBEDDED SYSTEM
•Areal-timesystemisusedwhenrigidtime
requirementshavebeenplacedonthe
operationofaprocessorortheflowofdata;
thus,itisoftenusedasacontroldeviceina
dedicatedapplication.
•Theytendtohaveveryspecifictasks.
•Embeddedsystemsalmostalwaysrunreal-
timeoperatingsystems.
S. Shanmuga Priya, NHCE

Real-Time Embedded System Applications
Medical System
Vehicle System
S. Shanmuga Priya, NHCE

REAL-TIME EMBEDDED SYSTEM Cont…
•When to use Real-Time System?
-Used when rigid time requirements have been placed on the
operation of a processor or the flow of data;
-It is often used as a control device in a dedicated application.
•Where does data comes from? Data comes from sensors
•What do real-time system do with data? Computer must analyze the
data and possibly adjust controls to modify the sensor inputs.
TYPES
Hard Real-Time System Soft Real-Time System
Followsstricttimeconstraints,elseleads
tocatastrophiccauses,likepermanent
lossofdata
Ex: Air Bag System, Anti-Lock Brake
System
Missing time constraint is acceptable
Ex: Automatic Teller Machine (ATM)
Audio-Video Playback System
S. Shanmuga Priya, NHCE

•Applicationsandexamplesofreal-timesystems:
-appearingaspartofourcommercial,government,military,medical,
educational,andculturalinfrastructures
•Includedare
VehicleSystems-forautomobiles,subways,aircraft,railways,andships
TrafficControl-forhighways,airspace,railwaytracks,andshipping
lanes
MedicalSystems-forradiationtherapy,patientmonitoring
MilitaryUses-suchasfiringweapons,tracking,andcommandand
control
ManufacturingSystemswithrobots
HouseholdSystems-formonitoringandcontrollingappliances
REAL-TIME EMBEDDED SYSTEM Cont…
S. Shanmuga Priya, NHCE

SYLLABUS –MODULE 1
•Introduction
BasicsofOperatingSystems:Definition-OperatingSystemstructure;
OperatingSystemoperations–Dual-ModeandMulti-Mode;Kernel
DataStructure–Lists,Stacks,andQueues,Trees;Computing
Environments–MobileComputing,DistributedSystems,Client-Server
Computing,Peer-to-Peer,Virtualization,CloudComputing,Real-Time
EmbeddedSystems.
S. Shanmuga Priya, NHCE