overview of operating systems
DESCRIPTION
Chapters 1 and 2. Overview of Operating Systems. Introduction. Twin aims of an operating system are: User convenience System performance Performance measures depend on the computing environment Number of requests serviced per unit time, etc. Introduction. Fundamental tasks of an OS - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/1.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 1Copyright ©2005
Overview of Operating Systems
Chapters 1 and 2
![Page 2: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/2.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 2Copyright ©2005
Introduction
• Twin aims of an operating system are:– User convenience– System performance
* Performance measures depend on the computing environment
* Number of requests serviced per unit time, etc
![Page 3: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/3.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 3Copyright ©2005
Introduction
• Fundamental tasks of an OS
- Management of Programs
* Organize their execution by sharing the CPU
* Ensure good user service and efficient use
- Management of Resources
* Efficient allocation/de-allocation without
constraining user programs
- Security and Protection
* Ensure absence of interference with programs and
resources by entities within and outside the OS
![Page 4: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/4.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 4Copyright ©2005
Overview of security and protection threats
![Page 5: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/5.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 5Copyright ©2005
OS and the Computer System
• In this module, we study
- Fundamental features of computer systems that are
important to an OS
* Memory hierarchy
* Interrupt structure
* I/O organization
- Fundamentals of how a program interacts with an OS
![Page 6: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/6.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 6Copyright ©2005
Memory utilization during operation of an OS
![Page 7: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/7.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 7Copyright ©2005
Model of a Computer System
![Page 8: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/8.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 8Copyright ©2005
Fields of Program Status Word (PSW)
![Page 9: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/9.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 9Copyright ©2005
(a) Program (b) State of CPU after executing COMPARE instruction
![Page 10: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/10.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 10Copyright ©2005
Memory hierarchy containing cache, main memory and disk
![Page 11: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/11.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 11Copyright ©2005
Memory hierarchy
• Cache memory * Organization – Cache block or cache line -- Inclusive or exclusive -- Direct, fully associative, set associative * Different levels of caches – Why? How many levels? * Cache hit ratio – What factors influence it?
• Main memory * Memory protection * Virtual memory?
![Page 12: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/12.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 12Copyright ©2005
Memory protection using bound registers
![Page 13: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/13.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 13Copyright ©2005
A schematic of virtual memory operation
![Page 14: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/14.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 14Copyright ©2005
Input/Output organization
• Involvement of the CPU in I/O operations
-- Should be the minimum possible due to imbalance
between CPU and I/O speeds
-- CPU should be free to execute instructions while
I/O operations are in progress
• Different I/O modes
-- Programmed I/O
-- Interrupt I/O
-- Direct memory access (DMA)
![Page 15: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/15.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 15Copyright ©2005
Input Output Modes
![Page 16: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/16.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 16Copyright ©2005
Interrupts
• An interrupt signals the occurrence of an event to the CPU
• The CPU is diverted to execution of an OS routine
• Different classes of interrupts convey occurrence of different kinds of events
![Page 17: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/17.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 17Copyright ©2005
Classes of Interrupts
![Page 18: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/18.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 18Copyright ©2005
The interrupt action
![Page 19: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/19.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 19Copyright ©2005
Steps in interrupt action
![Page 20: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/20.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 20Copyright ©2005
An operating system in its computing environment
![Page 21: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/21.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 21Copyright ©2005
Interrupt driven operation of a kernel
![Page 22: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/22.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 22Copyright ©2005
System Call
• A system call is a request made by a program through a
special instruction called a `software interrupt’ instruction
• The software interrupt is a program interrupt
• When a software interrupt occurs, the interrupt hardware transfers control to a routine of the OS
• The operand of the software interrupt instruction indicates what kind of request is being made by a program
![Page 23: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/23.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 23Copyright ©2005
System Calls
![Page 24: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/24.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 24Copyright ©2005
Interrupt processing and scheduling
![Page 25: Overview of Operating Systems](https://reader033.vdocuments.us/reader033/viewer/2022061604/568151df550346895dc017eb/html5/thumbnails/25.jpg)
Chapter 1: Introduction Dhamdhere: Operating Systems—A Concept-Based Approach
Slide No: 25Copyright ©2005
Simple and nested interrupt processing