SlideShare a Scribd company logo
1 of 12
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

What's hot

Operating system
Operating system Operating system
Operating system
Pihu Goel
 
IB Computer Science Section 6.3 Operating Systems
IB Computer Science Section 6.3 Operating SystemsIB Computer Science Section 6.3 Operating Systems
IB Computer Science Section 6.3 Operating Systems
stjulians school
 
Latihan8 comp-forensic-bab5
Latihan8 comp-forensic-bab5Latihan8 comp-forensic-bab5
Latihan8 comp-forensic-bab5
sabtolinux
 
Operating System
Operating SystemOperating System
Operating System
Syahida
 

What's hot (20)

Operating system
Operating system Operating system
Operating system
 
IB Computer Science Section 6.3 Operating Systems
IB Computer Science Section 6.3 Operating SystemsIB Computer Science Section 6.3 Operating Systems
IB Computer Science Section 6.3 Operating Systems
 
Code4vn course intro linux day1
Code4vn course intro linux day1Code4vn course intro linux day1
Code4vn course intro linux day1
 
Latihan8 comp-forensic-bab5
Latihan8 comp-forensic-bab5Latihan8 comp-forensic-bab5
Latihan8 comp-forensic-bab5
 
Operating system 1 by K. Adisesha
Operating system 1 by K. AdiseshaOperating system 1 by K. Adisesha
Operating system 1 by K. Adisesha
 
Introduction to the Kernel Chapter 2 Mrs.Sowmya Jyothi
Introduction to the Kernel  Chapter 2 Mrs.Sowmya JyothiIntroduction to the Kernel  Chapter 2 Mrs.Sowmya Jyothi
Introduction to the Kernel Chapter 2 Mrs.Sowmya Jyothi
 
Computer basics
Computer basicsComputer basics
Computer basics
 
Distributive operating system
Distributive operating systemDistributive operating system
Distributive operating system
 
Windows for Everyone(Operating System)
Windows for Everyone(Operating System)Windows for Everyone(Operating System)
Windows for Everyone(Operating System)
 
S02.W01 - Introduction to Operating Systems
S02.W01 - Introduction to Operating SystemsS02.W01 - Introduction to Operating Systems
S02.W01 - Introduction to Operating Systems
 
Bhagyashri k os-tutorial1
Bhagyashri k os-tutorial1Bhagyashri k os-tutorial1
Bhagyashri k os-tutorial1
 
Bba203 unit 2 operating system concepts
Bba203   unit 2 operating system conceptsBba203   unit 2 operating system concepts
Bba203 unit 2 operating system concepts
 
Operating System
Operating SystemOperating System
Operating System
 
Os
OsOs
Os
 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case study
 
Unix case-study
Unix case-studyUnix case-study
Unix case-study
 
ITT project ON types of operating system
ITT project ON types of operating systemITT project ON types of operating system
ITT project ON types of operating system
 
Purpose of OS
Purpose of OSPurpose of OS
Purpose of OS
 
Operating system 14 unix and kernel based os
Operating system 14 unix and kernel based osOperating system 14 unix and kernel based os
Operating system 14 unix and kernel based os
 
Ch03
Ch03Ch03
Ch03
 

Similar to Operating system

operatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptxoperatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptx
krishnajoshi70
 
chapter 3 opreating system lecture note and its is impaortamt concept for mn
chapter 3 opreating system  lecture note and its is impaortamt concept for mnchapter 3 opreating system  lecture note and its is impaortamt concept for mn
chapter 3 opreating system lecture note and its is impaortamt concept for mn
dejenehundaol91
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OS
C.U
 

Similar to Operating system (20)

OS Components and Structure
OS Components and StructureOS Components and Structure
OS Components and Structure
 
CS9222 Advanced Operating System
CS9222 Advanced Operating SystemCS9222 Advanced Operating System
CS9222 Advanced Operating System
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Ch3
Ch3Ch3
Ch3
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Os structure
Os structureOs structure
Os structure
 
introduce computer .pptx
introduce computer .pptxintroduce computer .pptx
introduce computer .pptx
 
Osonto documentatie
Osonto documentatieOsonto documentatie
Osonto documentatie
 
ch3 - operating system structures.ppt
ch3 - operating system structures.pptch3 - operating system structures.ppt
ch3 - operating system structures.ppt
 
operatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptxoperatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptx
 
chapter 3 opreating system lecture note and its is impaortamt concept for mn
chapter 3 opreating system  lecture note and its is impaortamt concept for mnchapter 3 opreating system  lecture note and its is impaortamt concept for mn
chapter 3 opreating system lecture note and its is impaortamt concept for mn
 
UNIT II.pptx
UNIT II.pptxUNIT II.pptx
UNIT II.pptx
 
Storage management in operating system
Storage management in operating systemStorage management in operating system
Storage management in operating system
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating System
 
Section02-Structures.ppt
Section02-Structures.pptSection02-Structures.ppt
Section02-Structures.ppt
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OS
 
OS_Ch3
OS_Ch3OS_Ch3
OS_Ch3
 
OSCh3
OSCh3OSCh3
OSCh3
 
L-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptL-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.ppt
 
Basic operating systems in computer and it's uses
Basic operating systems in computer and it's usesBasic operating systems in computer and it's uses
Basic operating systems in computer and it's uses
 

More from sweetysweety8

More from sweetysweety8 (20)

Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
WEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSISWEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSIS
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
WEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSISWEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSIS
 
WEB PROGRAMMING
WEB PROGRAMMINGWEB PROGRAMMING
WEB PROGRAMMING
 
Bigdata
BigdataBigdata
Bigdata
 
BIG DATA ANALYTICS
BIG DATA ANALYTICSBIG DATA ANALYTICS
BIG DATA ANALYTICS
 
BIG DATA ANALYTICS
BIG DATA ANALYTICSBIG DATA ANALYTICS
BIG DATA ANALYTICS
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
WEB PROGRAMMING
WEB PROGRAMMINGWEB PROGRAMMING
WEB PROGRAMMING
 
BIG DATA ANALYTICS
BIG DATA ANALYTICSBIG DATA ANALYTICS
BIG DATA ANALYTICS
 
Data mining
Data miningData mining
Data mining
 
Operating System
Operating SystemOperating System
Operating System
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 

Recently uploaded

Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven CuriosityUnlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Hung Le
 
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
David Celestin
 
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
ZurliaSoop
 

Recently uploaded (19)

in kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait Cityin kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
 
Introduction to Artificial intelligence.
Introduction to Artificial intelligence.Introduction to Artificial intelligence.
Introduction to Artificial intelligence.
 
The Concession of Asaba International Airport: Balancing Politics and Policy ...
The Concession of Asaba International Airport: Balancing Politics and Policy ...The Concession of Asaba International Airport: Balancing Politics and Policy ...
The Concession of Asaba International Airport: Balancing Politics and Policy ...
 
BEAUTIFUL PLACES TO VISIT IN LESOTHO.pptx
BEAUTIFUL PLACES TO VISIT IN LESOTHO.pptxBEAUTIFUL PLACES TO VISIT IN LESOTHO.pptx
BEAUTIFUL PLACES TO VISIT IN LESOTHO.pptx
 
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven CuriosityUnlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
 
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
 
Digital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of DrupalDigital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of Drupal
 
"I hear you": Moving beyond empathy in UXR
"I hear you": Moving beyond empathy in UXR"I hear you": Moving beyond empathy in UXR
"I hear you": Moving beyond empathy in UXR
 
History of Morena Moshoeshoe birth death
History of Morena Moshoeshoe birth deathHistory of Morena Moshoeshoe birth death
History of Morena Moshoeshoe birth death
 
Ready Set Go Children Sermon about Mark 16:15-20
Ready Set Go Children Sermon about Mark 16:15-20Ready Set Go Children Sermon about Mark 16:15-20
Ready Set Go Children Sermon about Mark 16:15-20
 
Using AI to boost productivity for developers
Using AI to boost productivity for developersUsing AI to boost productivity for developers
Using AI to boost productivity for developers
 
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINESBIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
BIG DEVELOPMENTS IN LESOTHO(DAMS & MINES
 
2024 mega trends for the digital workplace - FINAL.pdf
2024 mega trends for the digital workplace - FINAL.pdf2024 mega trends for the digital workplace - FINAL.pdf
2024 mega trends for the digital workplace - FINAL.pdf
 
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdfSOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
 
Abortion Pills Fahaheel ௹+918133066128💬@ Safe and Effective Mifepristion and ...
Abortion Pills Fahaheel ௹+918133066128💬@ Safe and Effective Mifepristion and ...Abortion Pills Fahaheel ௹+918133066128💬@ Safe and Effective Mifepristion and ...
Abortion Pills Fahaheel ௹+918133066128💬@ Safe and Effective Mifepristion and ...
 
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
 
LITTLE ABOUT LESOTHO FROM THE TIME MOSHOESHOE THE FIRST WAS BORN
LITTLE ABOUT LESOTHO FROM THE TIME MOSHOESHOE THE FIRST WAS BORNLITTLE ABOUT LESOTHO FROM THE TIME MOSHOESHOE THE FIRST WAS BORN
LITTLE ABOUT LESOTHO FROM THE TIME MOSHOESHOE THE FIRST WAS BORN
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
ECOLOGY OF FISHES.pptx full presentation
ECOLOGY OF FISHES.pptx full presentationECOLOGY OF FISHES.pptx full presentation
ECOLOGY OF FISHES.pptx full presentation
 

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.