operating systems overview
DESCRIPTION
OPERATING SYSTEMS OVERVIEW. Contents. O.S.Functions The Evolution of O.S . Characteristics of O.S . Basic hardware elements. Contents. O.S.Components System calls O.S.Structure. USER 1. USER 2. USER 3. USER n. interpreter. compiler. database system. text editor. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/1.jpg)
OPERATINGSYSTEMS OVERVIEW
![Page 2: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/2.jpg)
Contents
O.S.Functions The Evolution of O.S.
Characteristics of O.S. Basic hardware elements
![Page 3: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/3.jpg)
O.S.Components System calls O.S.Structure
ContentsContents
![Page 4: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/4.jpg)
compiler text editor
interpreter database system
USER 1USER 1 USER 2USER 2 USER 3USER 3 USER nUSER n
operating system
computer hardware
![Page 5: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/5.jpg)
Programming system componentsProgramming system components
compilersloaderlinkercomand interpreter (shell)…
compilersloaderlinkercomand interpreter (shell)…
![Page 6: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/6.jpg)
O.S. purposesO.S. purposes
to make a computer more convenient and easier to use
to allow more efficient operations of the whole computer system
to make a computer more convenient and easier to use
to allow more efficient operations of the whole computer system
![Page 7: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/7.jpg)
The O.S. masks the details of the hardware from the programmer and provides the programmer with a convenient interface for using system resources (system calls)
To simplify the program development
![Page 8: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/8.jpg)
Definition of an extended (virtual) machine
To simplify the program development
![Page 9: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/9.jpg)
VIRTUAL MACHINEES: DISK CONTROLLER
![Page 10: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/10.jpg)
commands: read, write, head motion, ecc…
state and error conditions
parameters: sector address, number of sectors for each track, ecc…
![Page 11: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/11.jpg)
Hardware resource allocationHardware resource allocation
Access to system resources must be controlled and conflicts for resource contention resolved
![Page 12: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/12.jpg)
Any user should be provided with required resources, by following suitable policies
Hardware resource allocationHardware resource allocation
![Page 13: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/13.jpg)
The details for the management of hardware resources must be hidden to users
![Page 14: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/14.jpg)
System calls provide the interface between the application programs and the O.S.
![Page 15: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/15.jpg)
THE EVOLUTION OF O.S.
![Page 16: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/16.jpg)
Serial processing
No O.S. Control by console
Scheduling
Setup time
![Page 17: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/17.jpg)
![Page 18: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/18.jpg)
Simple batch systems
Resident in main memory Control of the program
execution “batch” solution
Monitor
![Page 19: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/19.jpg)
Only one program in main memory
Machine time alternates between execution of user programs and monitor (OS)
Uniprogramming systems
![Page 20: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/20.jpg)
operating system
user program
main memory organization in a batch uni-programmingsystem
main memory organization in a batch uni-programmingsystem
Uniprogramming systems
![Page 21: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/21.jpg)
Hardware and software resources of the computer system are dedicated to only one program (monouser system)
Hardware and software resources of the computer system are dedicated to only one program (monouser system)
Uniprogramming systems
![Page 22: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/22.jpg)
low CPU utilizationlow CPU utilization
CPU utilizationCPU utilization
I/O waitingI/O waiting
tt
Uniprogramming systems
![Page 23: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/23.jpg)
Hardware characteristics
Interrupts
Privileged instructions
Timer
Memory protection
![Page 24: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/24.jpg)
Spooling (simultaneous peripheral operation on-line)
Spooling (simultaneous peripheral operation on-line)
disk
CPU and memory
printer cardreader
![Page 25: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/25.jpg)
A multiprogramming system with three jobs in memory
O.S.
job 1
job 2
job 3
Multiprogrammed
Batch Systems
Multiprogrammed
Batch Systems
![Page 26: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/26.jpg)
Increase of resource utilization
tt
job 1 job 1
job 2 job 2
Multiprogrammed
Batch Systems
Multiprogrammed
Batch Systems
CPU utilizationCPU utilization
I/O waitingI/O waiting
![Page 27: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/27.jpg)
O.S. are more sophisticatedO.S. are more sophisticated
Algorithms for resource management (CPU, memory, I/O)
Multiprogrammed SystemsMultiprogrammed Systems
![Page 28: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/28.jpg)
Protection of the environments
of different jobs
O.S. are more sophisticatedO.S. are more sophisticated
Multiprogrammed SystemsMultiprogrammed Systems
![Page 29: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/29.jpg)
Scheduling algorithmsJob mix
CPU-bound jobI/O-bound job
Multiprogrammed SystemsMultiprogrammed Systems
![Page 30: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/30.jpg)
ExampleExample
OS/36O working on IBM 36O e 37O seriesOS/36O working on IBM 36O e 37O series
Multiprogrammed
Batch Systems
Multiprogrammed
Batch Systems
![Page 31: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/31.jpg)
High efficiency in resource utilization
Users cannot directly interact with the O.S.
Large response time
Multiprogrammed
Batch Systems
Multiprogrammed
Batch Systems
![Page 32: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/32.jpg)
Interactive systems
direct communication between the user and the system
![Page 33: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/33.jpg)
Interactive systems
the user gives instruction to the O.S. directly, by using either a keyboard or a mouse and waits for immediate results
![Page 34: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/34.jpg)
Time-sharing systems
Logical extension of multiprogramming
Multiple users simultaneously access the system through terminals
![Page 35: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/35.jpg)
Time-sharing systems
Logical extension of multiprogramming
The O.S. interleaves the execution of each user program in a short burst or quantum of computation
![Page 36: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/36.jpg)
At the end of the quantum (or during the quantum, if the job executes an I/O instruction) the CPU is switched to a different job.
Time-sharing systems
![Page 37: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/37.jpg)
One of the first developed time sharing O.S. was the CTSS (Compatible Time Serie System), MIT years 6O’
MULTICS, UNIX, …
Time-sharing systems
![Page 38: OPERATING SYSTEMS OVERVIEW](https://reader035.vdocuments.net/reader035/viewer/2022070416/5681522a550346895dc0714d/html5/thumbnails/38.jpg)
CPU utilizationCPU utilizationI/O waitingI/O waiting
OverheadOverhead
overheadoverhead
tt
job 1 job 1
job 2 job 2