SlideShare a Scribd company logo
OS STRUCTURE
BY ,
B.NIVEGEETHA
I MSC CS
 To understand an OS,let’s first look at its components
and then how they’re composed or organized.
 We’ll come back and look at each of these in detail as
the course progresses.
 Realize that it’s never as simple as it looks.
 These basic concepts exist in some form in all
systems, however each system implements them in a
slightly different way.
 Also, the divisions between components may not be
as clean in the real world as in the model
 Monolithic (one unstructured program)
 Layered
 Microkernel
 Virtual Machines
 An operating system executes many kinds of activities:
 user programs
 batch jobs or command scripts
 system programs: print spoolers, name servers, file
servers, network listeners, etc...
 Each of these “execution entities” is encapsulated in a
process.
 The process includes the execution context (pc, registers,
resources, etc) and all info the activity (program) needs to
run.
 The OS schedules processes to run.
A program is a passive thing -- just a file on the disk
with code that is potentially runnable.
A process is one instance of a program in execution;
at any instance, there may be many processes running
copies of a single program (e.g., an editor): each is a
separate, independent process.
4
Code
Stack
PC
Registers
page tables
resource counts
....
Code
Stack
PC
Registers
page tables
resource counts
....
Process BProcess A
Allocation/de-allocation for processes, files, I/O.
Maintenance of several processes at a time
Keep track of who's using what memory
Movement of process memory to/from secondary storage.
A file is a collection of related information defined by its creator.
Commonly, files represent programs (both source and object
forms) and data.
The operating system is responsible for the following activities
in connections with file management:
• File creation and deletion.
• Directory creation and deletion.
• Support of primitives for manipulating files and directories.
• Mapping files onto secondary storage.
• File backup on stable (nonvolatile) storage media.
Buffer caching system
Generic device driver code
Drivers for each device - translate read/write requests into
disk position commands.
Disks, tapes, optical, ...
Free space management ( paging/swapping )
Storage allocation ( what data goes where on disk )
Disk scheduling
 Obtain access to system space
 Do parameter validation
 System resource collection ( locks on structures )
 Ask device/system for requested item
 Suspend waiting for device
 Interrupt makes this thread ready to run
 Wrap-up
 Return to user
In a Virtual Machine - each process "seems" to execute on its
own processor with its own memory, devices, etc.
 The resources of the physical machine are shared. Virtual
devices are sliced out of the physical ones. Virtual disks are
subsets of physical ones.
 Useful for running different OS simultaneously on the same
machine.
 Protection is excellent, but no sharing possible.
 Virtual privileged instructions are trapped.
Operating system

More Related Content

PPTX
Operating system v1 d1
PPTX
Operating system
PPT
Shradha ppt
PPTX
Part 6 Computer Oprating System
PDF
Operating system 3
PDF
Windows kernel poster
PDF
Operating system 4 files by adi
PPT
Operating Systems
Operating system v1 d1
Operating system
Shradha ppt
Part 6 Computer Oprating System
Operating system 3
Windows kernel poster
Operating system 4 files by adi
Operating Systems

What's hot (20)

PPTX
Operating system
PPT
IB Computer Science Section 6.3 Operating Systems
PPTX
Code4vn course intro linux day1
PPT
Latihan8 comp-forensic-bab5
PDF
Operating system 1 by K. Adisesha
PDF
Introduction to the Kernel Chapter 2 Mrs.Sowmya Jyothi
PDF
Computer basics
PPTX
Distributive operating system
PPTX
Windows for Everyone(Operating System)
PPTX
S02.W01 - Introduction to Operating Systems
PDF
Bhagyashri k os-tutorial1
PPTX
Bba203 unit 2 operating system concepts
PPT
Operating System
PPT
PPTX
I/O System and Case study
PPTX
Unix case-study
PPT
ITT project ON types of operating system
PPTX
Purpose of OS
PPTX
Operating system 14 unix and kernel based os
Operating system
IB Computer Science Section 6.3 Operating Systems
Code4vn course intro linux day1
Latihan8 comp-forensic-bab5
Operating system 1 by K. Adisesha
Introduction to the Kernel Chapter 2 Mrs.Sowmya Jyothi
Computer basics
Distributive operating system
Windows for Everyone(Operating System)
S02.W01 - Introduction to Operating Systems
Bhagyashri k os-tutorial1
Bba203 unit 2 operating system concepts
Operating System
I/O System and Case study
Unix case-study
ITT project ON types of operating system
Purpose of OS
Operating system 14 unix and kernel based os
Ad

Similar to Operating system (20)

PPT
3 chapter os presenting the topic os.ppt
PPT
OS Components and Structure
PDF
CS9222 Advanced Operating System
PDF
operating system structure
PDF
operating system structure
PPT
Os structure
PPTX
introduce computer .pptx
DOC
Osonto documentatie
PPT
ch3 - operating system structures.ppt
PPTX
operatinndnd jdj jjrg-system-1(1) (1).pptx
PDF
chapter 3 opreating system lecture note and its is impaortamt concept for mn
PPTX
UNIT II.pptx
PPTX
Storage management in operating system
PPT
Basics of Operating System
PPT
Section02-Structures.pptdvnfiughidfusffg
PPTX
Introduction to OS, types of operating systems
PPT
Section02-Structures.ppt
PPT
Ch3 OS
 
PPT
3 chapter os presenting the topic os.ppt
OS Components and Structure
CS9222 Advanced Operating System
operating system structure
operating system structure
Os structure
introduce computer .pptx
Osonto documentatie
ch3 - operating system structures.ppt
operatinndnd jdj jjrg-system-1(1) (1).pptx
chapter 3 opreating system lecture note and its is impaortamt concept for mn
UNIT II.pptx
Storage management in operating system
Basics of Operating System
Section02-Structures.pptdvnfiughidfusffg
Introduction to OS, types of operating systems
Section02-Structures.ppt
Ch3 OS
 
Ad

More from sweetysweety8 (20)

PPTX
Artificial neural network
PPTX
Compiler Design
PPTX
Software engineering
PPTX
Software engineering
PPTX
WEB PROGRAMMING ANALYSIS
PPTX
Software engineering
PPTX
Software engineering
PPTX
Compiler Design
PPTX
WEB PROGRAMMING ANALYSIS
PPTX
WEB PROGRAMMING
PPTX
Bigdata
PPTX
BIG DATA ANALYTICS
PPTX
BIG DATA ANALYTICS
PPTX
Compiler Design
PPTX
WEB PROGRAMMING
PPTX
BIG DATA ANALYTICS
PPT
Data mining
PPTX
Operating System
PPTX
Relational Database Management System
PPTX
Relational Database Management System
Artificial neural network
Compiler Design
Software engineering
Software engineering
WEB PROGRAMMING ANALYSIS
Software engineering
Software engineering
Compiler Design
WEB PROGRAMMING ANALYSIS
WEB PROGRAMMING
Bigdata
BIG DATA ANALYTICS
BIG DATA ANALYTICS
Compiler Design
WEB PROGRAMMING
BIG DATA ANALYTICS
Data mining
Operating System
Relational Database Management System
Relational Database Management System

Recently uploaded (20)

PPTX
Shizophrnia ppt for clinical psychology students of AS
PPTX
Research Process - Research Methods course
PDF
Microsoft-365-Administrator-s-Guide_.pdf
PPTX
HOW TO HANDLE THE STAGE FOR ACADEMIA AND OTHERS.pptx
PPTX
power point presentation ofDracena species.pptx
PPTX
lesson6-211001025531lesson plan ppt.pptx
PPTX
INDIGENOUS-LANGUAGES-AND-LITERATURE.pptx
PDF
6.-propertise of noble gases, uses and isolation in noble gases
PDF
COLEAD A2F approach and Theory of Change
PPTX
Introduction-to-Food-Packaging-and-packaging -materials.pptx
PDF
Yusen Logistics Group Sustainability Report 2024.pdf
PDF
PM Narendra Modi's speech from Red Fort on 79th Independence Day.pdf
PDF
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
PDF
Unnecessary information is required for the
PPTX
FINAL TEST 3C_OCTAVIA RAMADHANI SANTOSO-1.pptx
DOC
LBU毕业证学历认证,伦敦政治经济学院毕业证外国毕业证
PPTX
Sustainable Forest Management ..SFM.pptx
PPTX
Module_4_Updated_Presentation CORRUPTION AND GRAFT IN THE PHILIPPINES.pptx
PPTX
ANICK 6 BIRTHDAY....................................................
PDF
public speaking for kids in India - LearnifyU
Shizophrnia ppt for clinical psychology students of AS
Research Process - Research Methods course
Microsoft-365-Administrator-s-Guide_.pdf
HOW TO HANDLE THE STAGE FOR ACADEMIA AND OTHERS.pptx
power point presentation ofDracena species.pptx
lesson6-211001025531lesson plan ppt.pptx
INDIGENOUS-LANGUAGES-AND-LITERATURE.pptx
6.-propertise of noble gases, uses and isolation in noble gases
COLEAD A2F approach and Theory of Change
Introduction-to-Food-Packaging-and-packaging -materials.pptx
Yusen Logistics Group Sustainability Report 2024.pdf
PM Narendra Modi's speech from Red Fort on 79th Independence Day.pdf
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
Unnecessary information is required for the
FINAL TEST 3C_OCTAVIA RAMADHANI SANTOSO-1.pptx
LBU毕业证学历认证,伦敦政治经济学院毕业证外国毕业证
Sustainable Forest Management ..SFM.pptx
Module_4_Updated_Presentation CORRUPTION AND GRAFT IN THE PHILIPPINES.pptx
ANICK 6 BIRTHDAY....................................................
public speaking for kids in India - LearnifyU

Operating system

  • 2.  To understand an OS,let’s first look at its components and then how they’re composed or organized.  We’ll come back and look at each of these in detail as the course progresses.  Realize that it’s never as simple as it looks.  These basic concepts exist in some form in all systems, however each system implements them in a slightly different way.  Also, the divisions between components may not be as clean in the real world as in the model
  • 3.  Monolithic (one unstructured program)  Layered  Microkernel  Virtual Machines
  • 4.  An operating system executes many kinds of activities:  user programs  batch jobs or command scripts  system programs: print spoolers, name servers, file servers, network listeners, etc...  Each of these “execution entities” is encapsulated in a process.  The process includes the execution context (pc, registers, resources, etc) and all info the activity (program) needs to run.  The OS schedules processes to run.
  • 5. A program is a passive thing -- just a file on the disk with code that is potentially runnable. A process is one instance of a program in execution; at any instance, there may be many processes running copies of a single program (e.g., an editor): each is a separate, independent process. 4 Code Stack PC Registers page tables resource counts .... Code Stack PC Registers page tables resource counts .... Process BProcess A
  • 6. Allocation/de-allocation for processes, files, I/O. Maintenance of several processes at a time Keep track of who's using what memory Movement of process memory to/from secondary storage.
  • 7. A file is a collection of related information defined by its creator. Commonly, files represent programs (both source and object forms) and data. The operating system is responsible for the following activities in connections with file management: • File creation and deletion. • Directory creation and deletion. • Support of primitives for manipulating files and directories. • Mapping files onto secondary storage. • File backup on stable (nonvolatile) storage media.
  • 8. Buffer caching system Generic device driver code Drivers for each device - translate read/write requests into disk position commands.
  • 9. Disks, tapes, optical, ... Free space management ( paging/swapping ) Storage allocation ( what data goes where on disk ) Disk scheduling
  • 10.  Obtain access to system space  Do parameter validation  System resource collection ( locks on structures )  Ask device/system for requested item  Suspend waiting for device  Interrupt makes this thread ready to run  Wrap-up  Return to user
  • 11. In a Virtual Machine - each process "seems" to execute on its own processor with its own memory, devices, etc.  The resources of the physical machine are shared. Virtual devices are sliced out of the physical ones. Virtual disks are subsets of physical ones.  Useful for running different OS simultaneously on the same machine.  Protection is excellent, but no sharing possible.  Virtual privileged instructions are trapped.