Vous êtes sur la page 1sur 6

8/17/2009

Whatdoesan OperatingSystemdo?

Introductionto OperatingSystems
COMP755 Advanced OS

AnOperatingSystemprovidesalogical environmentforusingthecomputer. IfyouareusingasystemwithLinux(or Windows orUnixorSolarisorwhatever),it doesntmatterwhathardwareyouareusing, itstillrunsthesame same. Usersworkwithlogicalconceptsinsteadof physicalhardware.

MappingofPhysicaltoVirtual
Virtual file large address space single user named devices display windows Physical blocks on the disk limited RAM many users hardware addresses bit mapped display

PurposeofanOS
Ap program g thatcontrolstheexecutionof applicationprograms Aninterfacebetweentheuserorapplications andthehardware Masksthedetailsofthehardware Allocatesresourcestoprograms

8/17/2009

FunctionsofanOS
Compatibility Th OSprovides The id avirtual i t lmachine hi allowing ll i programstorunonavarietyofmachines. Convenience Providesaneasytouseinterface. Efficiency Allowsresourcestobeusedefficiently. Security Restrictaccesstoresources

ServicesofanOperatingSystem
Sharing Programexecution ControlledaccesstofilesandI/Odevices Systemaccessandsecurity Errordetectionandrecovery Hardwarecontrol

JustaProgram
Theoperatingsystemisacomputerprogram. Mostoperatingsystemsarelarge,sometimes verylarge,programs. Operatingsystemscanexecuteprivileged instructionstocontrolthehardware. Operatingsystemrelinquishescontrolofthe processortoexecuteotherprograms

History of Operating Systems


Who Cares?
Thisisnot ahistoryclass.

Operatingsystemsareshapedbythepath takentogethere.
8

8/17/2009

Ithinkthereisaworldmarketfor aboutfivecomputers.

HardwareLeadstheOS
B Becauseof fth theb better tt performance f of fmodern d computers,theOScanprovidemoreservices. Oldercomputersdidnthavethespeedor storagetoruntheOSoftoday.

ThomasJ.Watson(1945) presidentofIBM

10

TheEvolutionofOperatingSystems
NoOperating N O ti Systems S t Monitors SimpleBatchSystems Multiprogrammed BatchSystems Ti Sharing Time Sh i Systems S

NoOperatingSystems
Eachprogramdirectlyinterfacedwiththe h d hardware. Onepersonusedthecomputeratatime. JobSchedulingwasdonewithaclipboard Librariesofcommonlyusedprocedureswere thefirststartofoperatingsystems. systems

11

12

8/17/2009

Monitors
Themonitorwasaprogramthatloaded applicationprogramsintoRAM. RAM Themonitor,orasmallportionofit, remainedinRAMwhiletheapplication programran. Themonitorcontaineddevicedriversto simplifyaccesstoperipherals. Whentheprogramterminated,itwould jumpbacktothemonitor.
13

The monitor loads a job into the User Program Area A monitor instruction branches to the start of the user program When the user program is finished, the CPU fetches instructions from f the Monitor

14

SimpleBatchSystems
Theusersubmitsajob(writtenonpunched cards)tothecomputer. Theoperatingsystemwouldcopytheinput datatoadisk. Whenajobcompleted,theOSwouldselect oneofthejobsfromthediskandrunit. Printedoutputfromthejobwaswrittento thedisk.Whentheprogramterminated, theoutputfilewascopiedtotheprinter.
15

JobControlLanguage(JCL)
JCLwasusedtospecifycommandstothe operatingsystem system. Thefirstcharactersoftheinputcard identifieditasJCLordata. TheJCLspecifiedwhatprogramwastobe runorwhatdatafilewastobeused.

16

8/17/2009

JCLExample
//KENJOB RUN ACCOUNT=COMP755 // DD DDNAME DDNAME=* data cards // EXEC DDNAME=WILLIAMS.PROG //

MultiprogrammedBatchSystems
SeveralprogramshadtobekeptinRAMat thesametime,eachprotectedfromthe other. TheOShadtobeabletoswitchfromone userenvironmenttoanother. ReliedonhardwarethatsupportsI/O interruptsandDMA
17 18

TimeSharingSystems
Usingmultiprogrammingtohandlemultiple interactivejobs Processorstimeissharedamongmultiple users Multipleuserssimultaneouslyaccessthe systemthroughterminals Anewcontrollanguagewasrequiredfor interactivework.
19

MemoryOrganization
EarlycomputersdidnothavecacheorVirtual M Memory. C Cache h h haslittl littlei impact tonth theOS OS. SomeearlymachineshadtwotypesofRAM. TheOSmovedjobsbetweenthefastandslow RAM.

20

8/17/2009

VirtualMemory
TheIBM/370introducedvirtualmemory. TheIntel386providedvirtualmemory support. Theoperatingsystemhastomovepages betweenRAManddisk. TheOShastomaintainthepagetablesand addressingenvironment.

DOS 3270PCDOS Windows3.1 31

History of Microsoft Windows

Microsoft &IBM Windows95 NT3.0 OS/2 Windows98 NT4.0 OS/2Warp WindowsME Windows2000 WindowsXP WindowsVista Windows7
21 22

HistoryofUnix
OriginallydevelopedforaPDP7in1970by BrianKernighanandDennisRichie. WritteninCin1973 OSwithsourcecodewasavailablefree. AndrewTanenbaum createdMinix Linus Torvalds extendedMinix toLinux

23

Vous aimerez peut-être aussi