© D. J. Foreman, Structure of an O/S. © D. J. Foreman, Overview  Required functionality –Handle interrupts –Manage resources Processes.

Slides:



Advertisements
Similar presentations
Chapter 6 Limited Direct Execution
Advertisements

A. Frank - P. Weisberg Operating Systems Process Scheduling and Switching.
Thursday, June 08, 2006 The number of UNIX installations has grown to 10, with more expected. The UNIX Programmer's Manual, 2nd Edition, June, 1972.
Architectural Support for OS March 29, 2000 Instructor: Gary Kimura Slides courtesy of Hank Levy.
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
Operating Systems (CSCI2413) Lecture 3 Processes phones off (please)
CSE 451: Operating Systems Autumn 2013 Module 6 Review of Processes, Kernel Threads, User-Level Threads Ed Lazowska 570 Allen.
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
Chapter 3 Process Description and Control
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Chapter 4 Processes. Process: what is it? A program in execution A program in execution usually usually Can also have suspended or waiting processes Can.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Operating Systems Lecture November 2015© Copyright Virtual University of Pakistan 2 Agenda for Today Review of previous lecture Hardware (I/O, memory,
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
Processes and Process Control 1. Processes and Process Control 2. Definitions of a Process 3. Systems state vs. Process State 4. A 2 State Process Model.
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
Lecture Topics: 10/29 Architectural support for operating systems –timers –kernel mode –system calls –protected instructions.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
1 Computer Systems II Introduction to Processes. 2 First Two Major Computer System Evolution Steps Led to the idea of multiprogramming (multiple concurrent.
Concurrency, Processes, and System calls Benefits and issues of concurrency The basic concept of process System calls.
Processes & Threads Introduction to Operating Systems: Module 5.
Lecture 26 Virtual Machine Monitors. Virtual Machines Goal: run an guest OS over an host OS Who has done this? Why might it be useful? Examples: Vmware,
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Bootable Programs Building an O/S. Basic Requirements of any O/S Respond to interrupts (all kinds) Preserve user environment Protect users and self from.
CSCE451/851 Introduction to Operating Systems
Multiprogramming. Readings r Chapter 2.1 of the textbook.
Introduction to Operating Systems Concepts
Chapter 2: Computer-System Structures(Hardware)
Chapter 2: Computer-System Structures
Processes and threads.
Memory Management Paging (continued) Segmentation
Operating Systems CMPSC 473
Process Management Process Concept Why only the global variables?
Protection of System Resources
Day 08 Processes.
Day 09 Processes.
Overview of today’s lecture
CS 3305 System Calls Lecture 7.
Intro to Processes CSSE 332 Operating Systems
Module 2.2 COP4600 – Operating Systems Richard Newman
Memory Management Paging (continued) Segmentation
More examples How many processes does this piece of code create?
Computer-System Architecture
Module 2: Computer-System Structures
CSE 451: Operating Systems Spring 2012 Module 6 Review of Processes, Kernel Threads, User-Level Threads Ed Lazowska 570 Allen.
PROCESS MANAGEMENT Information maintained by OS for process management
Lecture Topics: 11/1 General Operating System Concepts Processes
Process Description and Control
Architectural Support for OS
Computer Organization
Process Description and Control
Operating Systems Lecture 3.
CSE 451: Operating Systems Autumn 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 596 Allen Center 1.
Module 2: Computer-System Structures
Process Description and Control
CSE 451: Operating Systems Autumn 2001 Lecture 2 Architectural Support for Operating Systems Brian Bershad 310 Sieg Hall 1.
CS149D Elements of Computer Science
CSE 451: Operating Systems Winter 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 412 Sieg Hall 1.
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
Architectural Support for OS
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
Module 2: Computer-System Structures
Process and Thread State Diagrams
Memory Management Paging (continued) Segmentation
Virtual Memory Use main memory as a “cache” for secondary (disk) storage Managed jointly by CPU hardware and the operating system (OS) Programs share main.
Chapter 1: Introduction CSS503 Systems Programming
Process and Thread State Diagrams
Presentation transcript:

© D. J. Foreman, Structure of an O/S

© D. J. Foreman, Overview  Required functionality –Handle interrupts –Manage resources Processes (users, programs) Devices (disks, terminals, CPU's) Storage (memory, pages, segments)  Optional functionality (may be built-in or add-on) –GUI –File system –Networking

© D. J. Foreman, Handling Interrupts -1  Assume user process running  Interrupt occurs (disk I/O completion, etc)  Hardware action (parallel) –Save Inst Ctr –Turn on privilege mode –Turn on memory access –Turn off interrupts –Load state vector for this kind of interrupt

© D. J. Foreman, Handling Interrupts -2  O/S actions –Save registers in reserved storage (no registers used for this operation) –Branch to handler for this kind of interrupt –Interrupt handler processes the interrupt Error handling Enabling user (may have been in wait state) –Handler returns to core of kernel –Process's state info saved in PCB –Core calls scheduler –Core calls dispatcher

© D. J. Foreman, Service call handler  Receives control from core of kernel  Table lookup of interrupt code  Calls function to handle specific code  Returns to core

© D. J. Foreman, Scheduler  Maintains list of all processes  Updates status of each process  Determines which processes can be run

© D. J. Foreman, Dispatcher  Uses results of scheduler  Selects a runnable process  Restores state of process  Loads state vector for NSI of process –Load Inst Ctr –Turn off privilege mode –Turn off memory access –Turn on interrupts

© D. J. Foreman, Installing an O/S on VM 'load myos (rldsave' 'gen myos' 'access 222 w' 'copyfile myos module a = = w (rep' 'salipl 222 (mo myos origin 1000 volid MYOS comments SAPL loaded'