SlideShare a Scribd company logo
1 of 34
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edit9on
Chapter 1: Introduction
1.2 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Chapter 1: Introduction
 OS: Introduction to Operating System
1. Introduction to Operating System (OS)
2. What is an Operating System (OS)
3. Types of Operating System (OS)
4. Functions of Operating System (OS)
5. Goals of Operating System (OS)
 OS: Basics of OS (Storage Structure)
1. Basics of Operating System.
2. Storage Structure.
3. Hierarchy of Storage devices.
4. Main memory and Secondary memory.
5. Volatile and Non-Volatile devices.
1.3 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Objectives
 To describe the basic organization of computer systems
 To provide a grand tour of the major components of operating systems
 To give an overview of the many types of computing environments
 To explore several open-source operating systems
1.4 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
What is an Operating System?
 A program that acts as an intermediary between a user of a computer
and the computer hardware
Figure 1.1 Abstract view of the components of a computer system.
1.5 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Computer System Structure
 Computer system can be divided into four components:
 Hardware – provides basic computing resources
 CPU, memory, I/O devices
 Operating system
 Controls and coordinates use of hardware among various
applications and users
 Application programs – define the ways in which the system
resources are used to solve the computing problems of the
users
 Word processors, compilers, web browsers, database
systems, video games
 Users
 People, machines, other computers
1.6 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types Operating Systems
 Batch OS
 Time sharing OS
 Distributed OS
 Network OS
 Real time OS
 Multi-Programming/Multi-Processing/Multi-Tasking OS
1.7 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Functions of Operating Systems
 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
 An Operating System does the following activities for memory
management −Management of memory
 Keeps tracks of primary memory, i.e., what part of it are in use by
whom, what part are not in use.
 In multiprogramming, the OS decides which process will get
memory when and how much.
 Allocates the memory when a process requests it to do so.
 De-allocates the memory when a process no longer needs it or
has been terminated.
1.8 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Functions of OS (Cont.)
 An Operating System does the following activities for file
management
 Keeps track of information, location, uses, status etc. The
collective facilities are often known as file system.
 Decides who gets the resources.
 Allocates the resources.
 De-allocates the resources.
 No universally accepted definition
 “The one program running at all times on the computer” is the kernel.
Everything else is either a system program (ships with the operating
system) or an application program.
1.9 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Goals of Operating System
Operating systems exist because they are supposed to make it easier to
access processing for the needs of the user. This is particularly clear
when you look at operating system for small personal computers.
 The primary goal of an operating system is a convenience for the
user- Convenience
 A secondary goal is Efficiency.
This goal is particularly important for large, shared multi-user systems.
 Both
Sometimes these two goals, convenience and efficiency, are
contradictory and are always design considerations by system
developers to optimize the overall utility of the computer for the needs of
the users and the computer system.
1.10 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Computer System Organization
 Computer-system operation
 A modern general-purpose computer system consist of one or
more CPUs and number of device controllers connected through
common bus that provides access to shared memory.
1.11 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Computer-System Operation
 I/O devices and the CPU can execute concurrently
 Each device controller is in charge of a particular device type
 Each device controller has a local buffer
 CPU moves data from/to main memory to/from local buffers
 I/O is from the device to local buffer of controller
 Device controller informs CPU that it has finished its operation by
causing an interrupt
1.12 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Computer Startup and Interrupt
 Some important terms:
 Bootstrap Program- The initial program that runs when a computer is powered up or rebooted.
 It is stored in the ROM.
 It must know how to load the OS and start executing that system.
 It must locate and load in to memory the OS kernel.
 Interrupt-The occurrence of an event is usually signaled by an Interrupt from Hardware or software.
 Hardware may trigger an interrupt at any time by sending a signal to the CPU, usually by the way of
the system bus.
 System Call (Monitor Call) –Software may trigger an interrupt by executing a special operation called
system call
1.13 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Common Functions of Interrupts
 When the CPU is interrupted, it stops what it is doing and
immediately transfers execution to a fixed location.
 The fixed location usually contains the starting addresses where the
service routine of the interrupt is located.
 Interrupt Service Routine executes.
 On completion, the CPU resumes the interrupted computation.
 Interrupt architecture must save the address of the interrupted
instruction
 An operating system is interrupt driven
1.14 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Interrupt Handling
 The operating system preserves the state of the CPU by storing
registers and the program counter
 Determines which type of interrupt has occurred:
 polling
 vectored interrupt system
 Separate segments of code determine what action should be taken for
each type of interrupt
1.15 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Interrupt Handling
 The operating system preserves the state of the CPU by storing
registers and the program counter
 Determines which type of interrupt has occurred:
 polling
 vectored interrupt system
 Separate segments of code determine what action should be taken for
each type of interrupt
1.16 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Interrupt Timeline
1.17 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
I/O Structure
 Storage is only one of many types of I/O devices within a compute.
 A large portion of OS codes is dedicated to managing I/O , both
because of its importance to the reliability and performance of a
system and because of the varying nature of the devices.
 A general purpose computer system consists of CPUs and multiple
device controller that are connected through a common bus.
 Each device controller is in charge of a specific type of device
maintains
Local Buffer Storage Set of Special Purpose
Registers
 Typically, Operating systems have a device driver for each device
controller.
 This device driver understands the device controller and presents a
uniform interface to the device to the rest of the operating system.
1.18 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
 To start an I/O operation, the device driver loads the appropriate
registers within the device controller.
 The device controller, in turn, examines the contents of these
registers to determine what action to take
 The controller starts the transfer of data from the device to its local
buffer.
 Once the transfer of data is complete, the device controller informs
the device driver via an interrupt that it has finished its operation.
 The device driver then returns control to the OS.
To solve this problem, Direct Memory Access(DMA) is used.
This form of interrupt-driven I/O is fine for small amounts of
data but can produce high overhead when used for bulk
data movement.
Working of an I/O Operation
1.19 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Direct Memory Access Structure
 After setting up buffers, pointers and counters for the I/O device
controller transfers an entire block of data directly to or from its own
buffer storage to memory, with no intervention by the CPU.
 Device controller transfers blocks of data from buffer storage directly to
main memory without CPU intervention
 Only one interrupt is generated per block, rather than the one interrupt
per byte.
1.20 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Working of an I/O Operation
1.21 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Storage Definitions and Notation Review
The basic unit of computer storage is the bit. A bit can contain one of two values, 0
and 1. All other storage in a computer is based on collections of bits. Given enough
bits, it is amazing how many things a computer can represent: numbers, letters,
images, movies, sounds, documents, and programs, to name a few. A byte is 8
bits, and on most computers it is the smallest convenient chunk of storage. For
example, most computers don’t have an instruction to move a bit but do have one
to move a byte. A less common term is word, which is a given computer
architecture’s native unit of data. A word is made up of one or more bytes. For
example, a computer that has 64-bit registers and 64-bit memory addressing
typically has 64-bit (8-byte) words. A computer executes many operations in its
native word size rather than a byte at a time.
Computer storage, along with most computer throughput, is generally measured
and manipulated in bytes and collections of bytes. A kilobyte, or KB, is 1,024
bytes; a megabyte, or MB, is 1,0242 bytes; a gigabyte, or GB, is 1,0243 bytes; a
terabyte, or TB, is 1,0244 bytes; and a petabyte, or PB, is 1,0245 bytes.
Computer manufacturers often round off these numbers and say that a megabyte is
1 million bytes and a gigabyte is 1 billion bytes. Networking measurements are an
exception to this general rule; they are given in bits (because networks move data a
bit at a time).
1.22 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Storage Structure
 Main memory – only large storage media that the CPU can access
directly
 Random access
 Typically volatile
 Secondary storage – extension of main memory that provides large
nonvolatile storage capacity
 Magnetic disks – rigid metal or glass platters covered with magnetic
recording material
 Disk surface is logically divided into tracks, which are subdivided
into sectors
 The disk controller determines the logical interaction between the
device and the computer
 Solid-state disks – faster than magnetic disks, nonvolatile
 Various technologies
 Becoming more popular
1.23 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Storage Hierarchy
 Storage systems organized in hierarchy
 Speed
 Cost
 Volatility
 Caching – copying information into faster storage system; main
memory can be viewed as a cache for secondary storage
 Device Driver for each device controller to manage I/O
 Provides uniform interface between controller and kernel
1.24 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Storage-Device Hierarchy
1.25 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
1.26 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Caching
 Important principle, performed at many levels in a computer (in
hardware, operating system, software)
 Information in use copied from slower to faster storage temporarily
 Faster storage (cache) checked first to determine if information is
there
 If it is, information used directly from the cache (fast)
 If not, data copied to cache and used there
 Cache smaller than storage being cached
 Cache management important design problem
 Cache size and replacement policy
1.27 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Computer System Architecture
 How we Categorized the computer system based on the general Purpose Processors.
1.28 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Single Processor System
1.29 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Multi-Processor System
1.30 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of Multi-Processor Systems
1.31 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Clustered Systems
1.32 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Clustered Systems
1.33 Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Students Task
List Open Source Operating Systems
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edit9on
End of Chapter 1

More Related Content

Similar to operating system of the computer/PC/laptop.pptx

ch1.ppthjhgjhghjghjgjhgugugugmhjgh iyuyuy
ch1.ppthjhgjhghjghjgjhgugugugmhjgh iyuyuych1.ppthjhgjhghjghjgjhgugugugmhjgh iyuyuy
ch1.ppthjhgjhghjghjgjhgugugugmhjgh iyuyuypavan402055
 
cs8493 - operating systems unit 1
cs8493 - operating systems unit 1cs8493 - operating systems unit 1
cs8493 - operating systems unit 1SIMONTHOMAS S
 
Linux operating system fundamentals of Operating System
Linux operating system fundamentals of Operating SystemLinux operating system fundamentals of Operating System
Linux operating system fundamentals of Operating SystemIraqReshi
 
Introduction_to_OperatingSystems_ch1.ppt
Introduction_to_OperatingSystems_ch1.pptIntroduction_to_OperatingSystems_ch1.ppt
Introduction_to_OperatingSystems_ch1.pptpaautomation11
 
Week-01-26092022-095635am (4).ppt
Week-01-26092022-095635am (4).pptWeek-01-26092022-095635am (4).ppt
Week-01-26092022-095635am (4).pptYasirShaikh34
 
Chapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating SystemChapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating SystemShafaan Khaliq Bhatti
 
Chapter 1 Introduction.pptx
Chapter 1 Introduction.pptxChapter 1 Introduction.pptx
Chapter 1 Introduction.pptxAbdiAzizMaashaa1
 
Lec 6 OS structure and Operations.ppt
Lec 6 OS structure and Operations.pptLec 6 OS structure and Operations.ppt
Lec 6 OS structure and Operations.pptinfomerlin
 
chapter 1 of Operating system by gagne.ppt
chapter 1 of Operating system by gagne.pptchapter 1 of Operating system by gagne.ppt
chapter 1 of Operating system by gagne.ppt51b48265a74f87
 

Similar to operating system of the computer/PC/laptop.pptx (20)

ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
Ch1
Ch1Ch1
Ch1
 
ch1.pptx
ch1.pptxch1.pptx
ch1.pptx
 
ch1.ppthjhgjhghjghjgjhgugugugmhjgh iyuyuy
ch1.ppthjhgjhghjghjgjhgugugugmhjgh iyuyuych1.ppthjhgjhghjghjgjhgugugugmhjgh iyuyuy
ch1.ppthjhgjhghjghjgjhgugugugmhjgh iyuyuy
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
cs8493 - operating systems unit 1
cs8493 - operating systems unit 1cs8493 - operating systems unit 1
cs8493 - operating systems unit 1
 
Linux operating system fundamentals of Operating System
Linux operating system fundamentals of Operating SystemLinux operating system fundamentals of Operating System
Linux operating system fundamentals of Operating System
 
Operating system introduction
Operating system introductionOperating system introduction
Operating system introduction
 
Introduction_to_OperatingSystems_ch1.ppt
Introduction_to_OperatingSystems_ch1.pptIntroduction_to_OperatingSystems_ch1.ppt
Introduction_to_OperatingSystems_ch1.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
Week-01-26092022-095635am (4).ppt
Week-01-26092022-095635am (4).pptWeek-01-26092022-095635am (4).ppt
Week-01-26092022-095635am (4).ppt
 
Chapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating SystemChapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating System
 
Ch1 Operating system
Ch1 Operating systemCh1 Operating system
Ch1 Operating system
 
Ch1
Ch1Ch1
Ch1
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
Chapter 1 Introduction.pptx
Chapter 1 Introduction.pptxChapter 1 Introduction.pptx
Chapter 1 Introduction.pptx
 
Lec 6 OS structure and Operations.ppt
Lec 6 OS structure and Operations.pptLec 6 OS structure and Operations.ppt
Lec 6 OS structure and Operations.ppt
 
chapter 1 of Operating system by gagne.ppt
chapter 1 of Operating system by gagne.pptchapter 1 of Operating system by gagne.ppt
chapter 1 of Operating system by gagne.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 

operating system of the computer/PC/laptop.pptx

  • 1. Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edit9on Chapter 1: Introduction
  • 2. 1.2 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Chapter 1: Introduction  OS: Introduction to Operating System 1. Introduction to Operating System (OS) 2. What is an Operating System (OS) 3. Types of Operating System (OS) 4. Functions of Operating System (OS) 5. Goals of Operating System (OS)  OS: Basics of OS (Storage Structure) 1. Basics of Operating System. 2. Storage Structure. 3. Hierarchy of Storage devices. 4. Main memory and Secondary memory. 5. Volatile and Non-Volatile devices.
  • 3. 1.3 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Objectives  To describe the basic organization of computer systems  To provide a grand tour of the major components of operating systems  To give an overview of the many types of computing environments  To explore several open-source operating systems
  • 4. 1.4 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition What is an Operating System?  A program that acts as an intermediary between a user of a computer and the computer hardware Figure 1.1 Abstract view of the components of a computer system.
  • 5. 1.5 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Computer System Structure  Computer system can be divided into four components:  Hardware – provides basic computing resources  CPU, memory, I/O devices  Operating system  Controls and coordinates use of hardware among various applications and users  Application programs – define the ways in which the system resources are used to solve the computing problems of the users  Word processors, compilers, web browsers, database systems, video games  Users  People, machines, other computers
  • 6. 1.6 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Types Operating Systems  Batch OS  Time sharing OS  Distributed OS  Network OS  Real time OS  Multi-Programming/Multi-Processing/Multi-Tasking OS
  • 7. 1.7 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Functions of Operating Systems  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  An Operating System does the following activities for memory management −Management of memory  Keeps tracks of primary memory, i.e., what part of it are in use by whom, what part are not in use.  In multiprogramming, the OS decides which process will get memory when and how much.  Allocates the memory when a process requests it to do so.  De-allocates the memory when a process no longer needs it or has been terminated.
  • 8. 1.8 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Functions of OS (Cont.)  An Operating System does the following activities for file management  Keeps track of information, location, uses, status etc. The collective facilities are often known as file system.  Decides who gets the resources.  Allocates the resources.  De-allocates the resources.  No universally accepted definition  “The one program running at all times on the computer” is the kernel. Everything else is either a system program (ships with the operating system) or an application program.
  • 9. 1.9 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Goals of Operating System Operating systems exist because they are supposed to make it easier to access processing for the needs of the user. This is particularly clear when you look at operating system for small personal computers.  The primary goal of an operating system is a convenience for the user- Convenience  A secondary goal is Efficiency. This goal is particularly important for large, shared multi-user systems.  Both Sometimes these two goals, convenience and efficiency, are contradictory and are always design considerations by system developers to optimize the overall utility of the computer for the needs of the users and the computer system.
  • 10. 1.10 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Computer System Organization  Computer-system operation  A modern general-purpose computer system consist of one or more CPUs and number of device controllers connected through common bus that provides access to shared memory.
  • 11. 1.11 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Computer-System Operation  I/O devices and the CPU can execute concurrently  Each device controller is in charge of a particular device type  Each device controller has a local buffer  CPU moves data from/to main memory to/from local buffers  I/O is from the device to local buffer of controller  Device controller informs CPU that it has finished its operation by causing an interrupt
  • 12. 1.12 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Computer Startup and Interrupt  Some important terms:  Bootstrap Program- The initial program that runs when a computer is powered up or rebooted.  It is stored in the ROM.  It must know how to load the OS and start executing that system.  It must locate and load in to memory the OS kernel.  Interrupt-The occurrence of an event is usually signaled by an Interrupt from Hardware or software.  Hardware may trigger an interrupt at any time by sending a signal to the CPU, usually by the way of the system bus.  System Call (Monitor Call) –Software may trigger an interrupt by executing a special operation called system call
  • 13. 1.13 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Common Functions of Interrupts  When the CPU is interrupted, it stops what it is doing and immediately transfers execution to a fixed location.  The fixed location usually contains the starting addresses where the service routine of the interrupt is located.  Interrupt Service Routine executes.  On completion, the CPU resumes the interrupted computation.  Interrupt architecture must save the address of the interrupted instruction  An operating system is interrupt driven
  • 14. 1.14 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Interrupt Handling  The operating system preserves the state of the CPU by storing registers and the program counter  Determines which type of interrupt has occurred:  polling  vectored interrupt system  Separate segments of code determine what action should be taken for each type of interrupt
  • 15. 1.15 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Interrupt Handling  The operating system preserves the state of the CPU by storing registers and the program counter  Determines which type of interrupt has occurred:  polling  vectored interrupt system  Separate segments of code determine what action should be taken for each type of interrupt
  • 16. 1.16 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Interrupt Timeline
  • 17. 1.17 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition I/O Structure  Storage is only one of many types of I/O devices within a compute.  A large portion of OS codes is dedicated to managing I/O , both because of its importance to the reliability and performance of a system and because of the varying nature of the devices.  A general purpose computer system consists of CPUs and multiple device controller that are connected through a common bus.  Each device controller is in charge of a specific type of device maintains Local Buffer Storage Set of Special Purpose Registers  Typically, Operating systems have a device driver for each device controller.  This device driver understands the device controller and presents a uniform interface to the device to the rest of the operating system.
  • 18. 1.18 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition  To start an I/O operation, the device driver loads the appropriate registers within the device controller.  The device controller, in turn, examines the contents of these registers to determine what action to take  The controller starts the transfer of data from the device to its local buffer.  Once the transfer of data is complete, the device controller informs the device driver via an interrupt that it has finished its operation.  The device driver then returns control to the OS. To solve this problem, Direct Memory Access(DMA) is used. This form of interrupt-driven I/O is fine for small amounts of data but can produce high overhead when used for bulk data movement. Working of an I/O Operation
  • 19. 1.19 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Direct Memory Access Structure  After setting up buffers, pointers and counters for the I/O device controller transfers an entire block of data directly to or from its own buffer storage to memory, with no intervention by the CPU.  Device controller transfers blocks of data from buffer storage directly to main memory without CPU intervention  Only one interrupt is generated per block, rather than the one interrupt per byte.
  • 20. 1.20 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Working of an I/O Operation
  • 21. 1.21 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Storage Definitions and Notation Review The basic unit of computer storage is the bit. A bit can contain one of two values, 0 and 1. All other storage in a computer is based on collections of bits. Given enough bits, it is amazing how many things a computer can represent: numbers, letters, images, movies, sounds, documents, and programs, to name a few. A byte is 8 bits, and on most computers it is the smallest convenient chunk of storage. For example, most computers don’t have an instruction to move a bit but do have one to move a byte. A less common term is word, which is a given computer architecture’s native unit of data. A word is made up of one or more bytes. For example, a computer that has 64-bit registers and 64-bit memory addressing typically has 64-bit (8-byte) words. A computer executes many operations in its native word size rather than a byte at a time. Computer storage, along with most computer throughput, is generally measured and manipulated in bytes and collections of bytes. A kilobyte, or KB, is 1,024 bytes; a megabyte, or MB, is 1,0242 bytes; a gigabyte, or GB, is 1,0243 bytes; a terabyte, or TB, is 1,0244 bytes; and a petabyte, or PB, is 1,0245 bytes. Computer manufacturers often round off these numbers and say that a megabyte is 1 million bytes and a gigabyte is 1 billion bytes. Networking measurements are an exception to this general rule; they are given in bits (because networks move data a bit at a time).
  • 22. 1.22 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Storage Structure  Main memory – only large storage media that the CPU can access directly  Random access  Typically volatile  Secondary storage – extension of main memory that provides large nonvolatile storage capacity  Magnetic disks – rigid metal or glass platters covered with magnetic recording material  Disk surface is logically divided into tracks, which are subdivided into sectors  The disk controller determines the logical interaction between the device and the computer  Solid-state disks – faster than magnetic disks, nonvolatile  Various technologies  Becoming more popular
  • 23. 1.23 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Storage Hierarchy  Storage systems organized in hierarchy  Speed  Cost  Volatility  Caching – copying information into faster storage system; main memory can be viewed as a cache for secondary storage  Device Driver for each device controller to manage I/O  Provides uniform interface between controller and kernel
  • 24. 1.24 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Storage-Device Hierarchy
  • 25. 1.25 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition
  • 26. 1.26 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Caching  Important principle, performed at many levels in a computer (in hardware, operating system, software)  Information in use copied from slower to faster storage temporarily  Faster storage (cache) checked first to determine if information is there  If it is, information used directly from the cache (fast)  If not, data copied to cache and used there  Cache smaller than storage being cached  Cache management important design problem  Cache size and replacement policy
  • 27. 1.27 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Computer System Architecture  How we Categorized the computer system based on the general Purpose Processors.
  • 28. 1.28 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Single Processor System
  • 29. 1.29 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Multi-Processor System
  • 30. 1.30 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Types of Multi-Processor Systems
  • 31. 1.31 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Clustered Systems
  • 32. 1.32 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Clustered Systems
  • 33. 1.33 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edition Students Task List Open Source Operating Systems
  • 34. Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9th Edit9on End of Chapter 1