SlideShare una empresa de Scribd logo
1 de 39
Operating Systems:
 Internals and Design Principles, 6/E
           William Stallings


        Chapter 2
Operating System Overview




                     Patricia Roy
           Manatee Community College, Venice,
                          FL
                  ©2008, Prentice Hall
Operating System
• A program that controls the execution of
  application programs
• An interface between applications and
  hardware
Operating System Objectives
• Convenience: make the computer more
  convenient to use
• Efficiency: in using the system resources
• Ability to evolve: to permit the effective
  development, testing, and introduction of
  new system functions.
Layers and Views
Services Provided by the OS
• Program development
    – Editors and debuggers
•   Program execution
•   Access I/O devices
•   Controlled access to files
•   System access
Services Provided by the OS
• Error detection and response
  – Internal and external hardware errors
  – Software errors
  – OS provide a response that clears the error
    (ending the program that cause error, retry the
    operation, or simply reporting the error to the
    application).
Services Provided by the OS
• Accounting
  – Collect usage statistics
  – Monitor performance
  – Used to anticipate future enhancements
  – Used for billing purposes
Operating System
• Responsible for managing resources
• Functions same way as ordinary computer
  software
  – It is a program that is executed
• Operating system relinquishes control of
  the processor
OS as Resource Manager
Kernel
• Portion of operating system that is in main
  memory
• Contains most frequently used functions
• Also called the nucleus
Evolution of Operating
                Systems
• Serial processing
  – No operating system
  – Programs in machine code loaded from input
    device
  – If an error halted the program, the error
    condition was indicated by lights.
  – The output appears on the printer
Evolution of Operating
                Systems
• Serial processing, two main problems:
  – Schedule time: waste of time for short
    programs. Problem if not finish in the
    allocated time
  – Setup time: included loading the compiler,
    source program, saving compiled program,
    and loading and linking
Evolution of Operating
                Systems
• Simple batch system: the first OS (batch
  OS) on IBM 701 by general Motors
  – Monitor
    • Software that controls the sequence of events
    • Batch jobs together
    • Program returns control to monitor when finished,
      then the monitor automatically begin loading the
      next program.
Desirable Hardware Features
• Memory protection
  – Does not allow the memory area containing
    the monitor to be altered
• Timer
  – Prevents a job from monopolizing the system
  – If the timer expires the user program stopped.
Desirable Hardware Features
• Privileged instructions
  – Certain machine level instructions can only be
    executed by the monitor such as I/O instr.
• Interrupts
  – Early computer models did not have this
    capability. This feature gives the OS the
    flexibility in relinquishing control and regaining
    control to and regaining control from user
    programs.
Memory Protection
• User program executes in user mode
  – Certain instructions may not be executed
  – Certain area’s of memory are protected from
    user’s use.
Memory Protection
• Monitor executes in system mode(Kernel
  mode)
  – Privileged instructions are executed
  – Protected areas of memory may be accessed
System Utilization Example
Uniprogramming
• Processor must wait for I/O instruction to
  complete before proceeding
Multiprogramming
• When one job needs to wait for I/O, the
  processor can switch to the other job
Multiprogramming
Utilization Histograms
Example
Time Sharing Systems
• Using multiprogramming to handle multiple
  interactive jobs
• Processor’s time is shared among multiple
  users
• Multiple users simultaneously access the
  system through terminals, with the OS
  interleaving the execution of each user
  program in a short burst or quantum of
  computation.
Major Achievements
There have been five major theoretical advances
in the development of operating systems:
•   Processes
•   Memory management
•   Information protection and security
•   Scheduling and resource management
•   System structure
Process
• A program in execution
• An instance of a program running on a
  computer
• The entity that can be assigned to and
  executed on a processor
Process
• Consists of three components
  – An executable program
  – Associated data needed by the program
  – Execution context of the program
    • All information the operating system needs to
      manage the process
Process
Memory Management
The os has five principle storage management
responsibilities:
•   Process isolation
•   Automatic allocation and management
•   Support of modular programming
•   Protection and access control
•   Long-term storage
Information Protection and
             Security
Work in security and protection can be
  grouped into four categories:
• Availability
  – Concerned with protecting the system against
    interruption
• Confidentiality
  – Assuring that users cannot read data for
    which access is unauthorized
Information Protection and
             Security
• Data integrity
  – Protection of data from unauthorized
    modification
• Authenticity
  – Concerned with the proper verification of the
    identity of users and the validity of messages
    or data
Scheduling and Resource
          Management
Any resource allocation and scheduling policy must
  consider three factors:
• Fairness
  – Give equal and fair access to resources
• Differential responsiveness
  – Discriminate among different classes of jobs
• Efficiency
  – Maximize throughput, minimize response time,
    and accommodate as many uses as possible
System Structure
• View the system as a series of levels
• Each level performs a related subset of
  functions
• Each level relies on the next lower level to
  perform more primitive functions
• This decomposes a problem into a number
  of more manageable subproblems
Levels
• Level 1
  – Electronic circuits
  – Objects are registers, memory cells, and logic
    gates
  – Operations are clearing a register or reading a
    memory location
• Level 2
  – Processor’s instruction set
  – Operations such as add, subtract, load, and
    store
Levels
• Level 3
  – Adds the concept of a procedure or
    subroutine, plus call/return operations
• Level 4
  – Interrupts
Concepts Related to
         Multiprogramming
• Level 5
  – Process as a program in execution
  – Suspend and resume processes
• Level 6
  – Secondary storage devices
  – Transfer of blocks of data
ConceptsRelated to
         Multiprogramming
• Level 7
  – Creates logical address space for processes
  – Organizes virtual address space into blocks
Deal with External Objects
• Level 8
  – Communication of information and messages
    between processes
• Level 9
  – Supports long-term storage of named files
• Level 10
  – Provides access to external devices using
    standardized interfaces
Deal with External Objects
• Level 11
  – Responsible for maintaining the association
    between the external and internal identifiers
• Level 12
  – Provides full-featured facility for the support of
    processes
• Level 13
  – Provides an interface to the OS for the user

Más contenido relacionado

La actualidad más candente

Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating SystemRaj Mohan
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling LanguageShahzad
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSKumar Pritam
 
File access methods.54
File access methods.54File access methods.54
File access methods.54myrajendra
 
Process management in os
Process management in osProcess management in os
Process management in osMiong Lazaro
 
Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...Shivam Mitra
 
Multiprogramming&timesharing
Multiprogramming&timesharingMultiprogramming&timesharing
Multiprogramming&timesharingTanuj Tyagi
 
Deadlocks in operating system
Deadlocks in operating systemDeadlocks in operating system
Deadlocks in operating systemSara Ali
 
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelCHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelmohamed khalaf alla mohamedain
 
Process management
Process managementProcess management
Process managementBirju Tank
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)Sohaib Danish
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process CommunicationAdeel Rasheed
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9myrajendra
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsWayne Jones Jnr
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)Imdad Ullah
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system modelHarshad Umredkar
 

La actualidad más candente (20)

Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating System
 
Shared memory
Shared memoryShared memory
Shared memory
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
File access methods.54
File access methods.54File access methods.54
File access methods.54
 
Process management in os
Process management in osProcess management in os
Process management in os
 
Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...
 
Multiprogramming&timesharing
Multiprogramming&timesharingMultiprogramming&timesharing
Multiprogramming&timesharing
 
Deadlocks in operating system
Deadlocks in operating systemDeadlocks in operating system
Deadlocks in operating system
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelCHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
 
Process management
Process managementProcess management
Process management
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Distributed Operating System_4
Distributed Operating System_4Distributed Operating System_4
Distributed Operating System_4
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
 

Similar a Lec # 1 chapter 2

cs-intro-os.ppt
cs-intro-os.pptcs-intro-os.ppt
cs-intro-os.pptinfomerlin
 
operating-system-03092013175227-operating-system.ppt
operating-system-03092013175227-operating-system.pptoperating-system-03092013175227-operating-system.ppt
operating-system-03092013175227-operating-system.pptTiktokIndia2
 
Operating systems introduction
Operating systems   introductionOperating systems   introduction
Operating systems introductionveeravanithaD
 
SISTEMAS OPERATIVOS.pptx
SISTEMAS OPERATIVOS.pptxSISTEMAS OPERATIVOS.pptx
SISTEMAS OPERATIVOS.pptxAnalistaSoporte
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John LadoMark John Lado, MIT
 
list of all Functions of operating system.pptx
list of all Functions of operating system.pptxlist of all Functions of operating system.pptx
list of all Functions of operating system.pptxErAnjuBala
 
Kernel security Concepts
Kernel security ConceptsKernel security Concepts
Kernel security ConceptsMohit Saxena
 
Engg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdfEngg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdfnikhil287188
 

Similar a Lec # 1 chapter 2 (20)

Chapter02-rev.pptx
Chapter02-rev.pptxChapter02-rev.pptx
Chapter02-rev.pptx
 
cs-intro-os.ppt
cs-intro-os.pptcs-intro-os.ppt
cs-intro-os.ppt
 
Chapter02
Chapter02Chapter02
Chapter02
 
Chapter02
Chapter02Chapter02
Chapter02
 
operating-system-03092013175227-operating-system.ppt
operating-system-03092013175227-operating-system.pptoperating-system-03092013175227-operating-system.ppt
operating-system-03092013175227-operating-system.ppt
 
Operating systems introduction
Operating systems   introductionOperating systems   introduction
Operating systems introduction
 
SISTEMAS OPERATIVOS.pptx
SISTEMAS OPERATIVOS.pptxSISTEMAS OPERATIVOS.pptx
SISTEMAS OPERATIVOS.pptx
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado
 
list of all Functions of operating system.pptx
list of all Functions of operating system.pptxlist of all Functions of operating system.pptx
list of all Functions of operating system.pptx
 
Kernel security Concepts
Kernel security ConceptsKernel security Concepts
Kernel security Concepts
 
Os1
Os1Os1
Os1
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
Operating system Chapter One
Operating system Chapter OneOperating system Chapter One
Operating system Chapter One
 
Os unit i
Os unit iOs unit i
Os unit i
 
Operating System-adi.pdf
Operating System-adi.pdfOperating System-adi.pdf
Operating System-adi.pdf
 
Os concepts
Os conceptsOs concepts
Os concepts
 
Engg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdfEngg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdf
 
OS chapter 1.pptx
OS chapter 1.pptxOS chapter 1.pptx
OS chapter 1.pptx
 
OS chapter 1.pptx
OS chapter 1.pptxOS chapter 1.pptx
OS chapter 1.pptx
 

Último

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Último (20)

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

Lec # 1 chapter 2

  • 1. Operating Systems: Internals and Design Principles, 6/E William Stallings Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall
  • 2. Operating System • A program that controls the execution of application programs • An interface between applications and hardware
  • 3. Operating System Objectives • Convenience: make the computer more convenient to use • Efficiency: in using the system resources • Ability to evolve: to permit the effective development, testing, and introduction of new system functions.
  • 5. Services Provided by the OS • Program development – Editors and debuggers • Program execution • Access I/O devices • Controlled access to files • System access
  • 6. Services Provided by the OS • Error detection and response – Internal and external hardware errors – Software errors – OS provide a response that clears the error (ending the program that cause error, retry the operation, or simply reporting the error to the application).
  • 7. Services Provided by the OS • Accounting – Collect usage statistics – Monitor performance – Used to anticipate future enhancements – Used for billing purposes
  • 8. Operating System • Responsible for managing resources • Functions same way as ordinary computer software – It is a program that is executed • Operating system relinquishes control of the processor
  • 9. OS as Resource Manager
  • 10. Kernel • Portion of operating system that is in main memory • Contains most frequently used functions • Also called the nucleus
  • 11. Evolution of Operating Systems • Serial processing – No operating system – Programs in machine code loaded from input device – If an error halted the program, the error condition was indicated by lights. – The output appears on the printer
  • 12. Evolution of Operating Systems • Serial processing, two main problems: – Schedule time: waste of time for short programs. Problem if not finish in the allocated time – Setup time: included loading the compiler, source program, saving compiled program, and loading and linking
  • 13. Evolution of Operating Systems • Simple batch system: the first OS (batch OS) on IBM 701 by general Motors – Monitor • Software that controls the sequence of events • Batch jobs together • Program returns control to monitor when finished, then the monitor automatically begin loading the next program.
  • 14. Desirable Hardware Features • Memory protection – Does not allow the memory area containing the monitor to be altered • Timer – Prevents a job from monopolizing the system – If the timer expires the user program stopped.
  • 15. Desirable Hardware Features • Privileged instructions – Certain machine level instructions can only be executed by the monitor such as I/O instr. • Interrupts – Early computer models did not have this capability. This feature gives the OS the flexibility in relinquishing control and regaining control to and regaining control from user programs.
  • 16. Memory Protection • User program executes in user mode – Certain instructions may not be executed – Certain area’s of memory are protected from user’s use.
  • 17. Memory Protection • Monitor executes in system mode(Kernel mode) – Privileged instructions are executed – Protected areas of memory may be accessed
  • 19. Uniprogramming • Processor must wait for I/O instruction to complete before proceeding
  • 20. Multiprogramming • When one job needs to wait for I/O, the processor can switch to the other job
  • 24. Time Sharing Systems • Using multiprogramming to handle multiple interactive jobs • Processor’s time is shared among multiple users • Multiple users simultaneously access the system through terminals, with the OS interleaving the execution of each user program in a short burst or quantum of computation.
  • 25. Major Achievements There have been five major theoretical advances in the development of operating systems: • Processes • Memory management • Information protection and security • Scheduling and resource management • System structure
  • 26. Process • A program in execution • An instance of a program running on a computer • The entity that can be assigned to and executed on a processor
  • 27. Process • Consists of three components – An executable program – Associated data needed by the program – Execution context of the program • All information the operating system needs to manage the process
  • 29. Memory Management The os has five principle storage management responsibilities: • Process isolation • Automatic allocation and management • Support of modular programming • Protection and access control • Long-term storage
  • 30. Information Protection and Security Work in security and protection can be grouped into four categories: • Availability – Concerned with protecting the system against interruption • Confidentiality – Assuring that users cannot read data for which access is unauthorized
  • 31. Information Protection and Security • Data integrity – Protection of data from unauthorized modification • Authenticity – Concerned with the proper verification of the identity of users and the validity of messages or data
  • 32. Scheduling and Resource Management Any resource allocation and scheduling policy must consider three factors: • Fairness – Give equal and fair access to resources • Differential responsiveness – Discriminate among different classes of jobs • Efficiency – Maximize throughput, minimize response time, and accommodate as many uses as possible
  • 33. System Structure • View the system as a series of levels • Each level performs a related subset of functions • Each level relies on the next lower level to perform more primitive functions • This decomposes a problem into a number of more manageable subproblems
  • 34. Levels • Level 1 – Electronic circuits – Objects are registers, memory cells, and logic gates – Operations are clearing a register or reading a memory location • Level 2 – Processor’s instruction set – Operations such as add, subtract, load, and store
  • 35. Levels • Level 3 – Adds the concept of a procedure or subroutine, plus call/return operations • Level 4 – Interrupts
  • 36. Concepts Related to Multiprogramming • Level 5 – Process as a program in execution – Suspend and resume processes • Level 6 – Secondary storage devices – Transfer of blocks of data
  • 37. ConceptsRelated to Multiprogramming • Level 7 – Creates logical address space for processes – Organizes virtual address space into blocks
  • 38. Deal with External Objects • Level 8 – Communication of information and messages between processes • Level 9 – Supports long-term storage of named files • Level 10 – Provides access to external devices using standardized interfaces
  • 39. Deal with External Objects • Level 11 – Responsible for maintaining the association between the external and internal identifiers • Level 12 – Provides full-featured facility for the support of processes • Level 13 – Provides an interface to the OS for the user