Major OS Components CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University

Slides:



Advertisements
Similar presentations
Interactive lesson about operating system
Advertisements

Operating System Structures
CSC 501 Operating Systems Principles
Introduction CSCI 444/544 Operating Systems Fall 2008.
ECE 526 – Network Processing Systems Design Software-based Protocol Processing Chapter 7: D. E. Comer.
04/14/2008CSCI 315 Operating Systems Design1 I/O Systems Notice: The slides for this lecture have been largely based on those accompanying the textbook.
Input-output and Communication Prof. Sin-Min Lee Department of Computer Science.
University of Maryland, CMSC 412, Fall CMSC 412 Operating Systems Fall 2002 Liviu Iftode
Operating System - Overview Lecture 2. OPERATING SYSTEM STRUCTURES Main componants of an O/S Process Management Main Memory Management File Management.
1 CS 333 Introduction to Operating Systems Class 2 – OS-Related Hardware & Software The Process Concept Jonathan Walpole Computer Science Portland State.
CS 416 Operating Systems Design Spring 2008 Liviu Iftode
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
Figure 1.1 Interaction between applications and the operating system.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Introduction CS 416: Operating Systems Design, Spring 2001
Silberschatz, Galvin and Gagne  Operating System Concepts Common System Components Process Management Main Memory Management File Management.
1 I/O Management in Representative Operating Systems.
Threads CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
Rensselaer Polytechnic Institute CSC 432 – Operating Systems David Goldschmidt, Ph.D.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
Computer Organization Review and OS Introduction CS550 Operating Systems.
9/14/2015B.Ramamurthy1 Operating Systems : Overview Bina Ramamurthy CSE421/521.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Chapter 6 Operating System Support. This chapter describes how middleware is supported by the operating system facilities at the nodes of a distributed.
Cpr E 308 Input/Output Recall: OS must abstract out all the details of specific I/O devices Today –Block and Character Devices –Hardware Issues – Programmed.
Hardware Definitions –Port: Point of connection –Bus: Interface Daisy Chain (A=>B=>…=>X) Shared Direct Device Access –Controller: Device Electronics –Registers:
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS6: Device Management 6.1. Principles of I/O.
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems CSCI-6140 – Computer Operating Systems David Goldschmidt, Ph.D.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Processes Introduction to Operating Systems: Module 3.
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
COP 4610 Introduction to Operating Systems. Chapter 1 - Introduction OS - Layer between the hardware and user programs (Figure 1.1) OS - The ultimate.
12/8/20151 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 12: I/O Systems I/O hardwared Application I/O Interface Kernel I/O.
Operating Systems: Summary INF1060: Introduction to Operating Systems and Data Communication.
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
Introduction to Operating System. 1.1 What is Operating System? An operating system is a program that manages the computer hardware. It also provides.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
System Components Operating System Services System Calls.
OPERATING SYSTEMS STRUCTURES Jerry Breecher 2: Operating System Structures 1.
Introduction to Operating Systems Concepts
Module 3: Operating-System Structures
Module 12: I/O Systems I/O hardware Application I/O Interface
Operating System Structure
CS 286 Computer Organization and Architecture
KERNEL ARCHITECTURE.
Operating Systems Bina Ramamurthy CSE421 11/27/2018 B.Ramamurthy.
I/O Systems I/O Hardware Application I/O Interface
Operating System Concepts
CS703 - Advanced Operating Systems
Operating Systems : Overview
Chapter 2: Operating-System Structures
Introduction to Operating Systems
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Operating Systems: A Modern Perspective, Chapter 3
Chapter 2: Operating-System Structures
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment. Phone:
Module 12: I/O Systems I/O hardwared Application I/O Interface
Presentation transcript:

Major OS Components CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University

2 Rutgers UniversityCS 416: Operating Systems What Is An Operating System? A software layer between the hardware and the application programs/users which provides a virtual machine interface: easy and safe A resource manager that allows programs/users to share the hardware resources: fair and efficient A set of utilities to simplify application development hardware operating system application (user)

3 Rutgers UniversityCS 416: Operating Systems Mechanism And Policy Mechanisms: data structures and operations that implement an abstraction (e.g. the buffer cache) Policies: the procedures that guides the selection of a certain course of action from among alternatives (e.g. the replacement policy for the buffer cache) Want to separate mechanisms and policies as much as possible Different policies may be needed for different operating environments hardware operating system: mechanism+policy application (user)

4 Rutgers UniversityCS 416: Operating Systems Basic computer structure CPU Memory memory bus I/O bus diskNet interface

5 Rutgers UniversityCS 416: Operating Systems System Abstraction: Processes A process is a system abstraction: illusion of being the only job in the system hardware: computer operating system: process user: run application create, kill processes, inter-process comm. Multiplexing resources

6 Rutgers UniversityCS 416: Operating Systems Processes: Mechanism and Policy Mechanism: Creation, destruction, suspension, context switch, signaling, IPC, etc. Policy: Minor policy questions: Who can create/destroy/suspend processes? How many active processes can each user have? Major policy question that we will concentrate on: How to share system resources between multiple processes? Typically broken into a number of orthogonal policies for individual resource such as CPU, memory, and disk.

7 Rutgers UniversityCS 416: Operating Systems Processor Abstraction: Threads A thread is a processor abstraction: illusion of having 1 processor per execution context hardware: processor operating system: thread application: execution context create, kill, synch. context switch

8 Rutgers UniversityCS 416: Operating Systems Threads: Mechanism and Policy Mechanism: Creation, destruction, suspension, context switch, signaling, synchronization, etc. Policy: How to share the CPU between threads from different processes? How to share the CPU between threads from the same process? How can multiple threads synchronize with each other? How to control inter-thread interactions? Can a thread murder other threads at will?

9 Rutgers UniversityCS 416: Operating Systems Memory Abstraction: Virtual memory hardware: physical memory operating system: virtual memory Virtual memory is a memory abstraction: illusion of large contiguous memory, often more memory than physically available application: address space virtual addresses physical addresses

10 Rutgers UniversityCS 416: Operating Systems Virtual Memory: Mechanism Mechanism: Virtual-to-physical memory mapping, page-fault, etc. physical memory: v-to-p memory mappings processes: virtual address spaces p1 p2

11 Rutgers UniversityCS 416: Operating Systems Virtual Memory: Policy Policy: How to multiplex a virtual memory that is larger than the physical memory onto what is available? How should physical memory be allocated to competing processes? How to control the sharing of a piece of physical memory between multiple processes?

12 Rutgers UniversityCS 416: Operating Systems Storage Abstraction: File System hardware: disk operating system: files, directories A file system is a storage abstraction: illusion of structured storage space application/user: copy file1 file2 naming, protection, operations on files operations on disk blocks...

13 Rutgers UniversityCS 416: Operating Systems File System Mechanism: File creation, deletion, read, write, file-block-to-disk-block mapping, file buffer cache, etc. Policy: Sharing vs. protection? Which block to allocate? File buffer cache management?

14 Rutgers UniversityCS 416: Operating Systems Communication Abstraction: Messaging hardware: network interface operating system: TCP/IP protocols Message passing is a communication abstraction: illusion of reliable (sometime ordered) transport application: sockets naming, messages network packets

15 Rutgers UniversityCS 416: Operating Systems Message Passing Mechanism: Send, receive, buffering, retransmission, etc. Policy: Congestion control and routing Multiplexing multiple connections onto a single NIC

16 Rutgers UniversityCS 416: Operating Systems Character & Block Devices hardware: keyboard, mouse, etc. operating system: character & block API The device interface gives the illusion that devices support the same API – character stream and block access application/user: read character from device naming, protection, read,write hardware specific PIO, interrupt handling, or DMA

17 Rutgers UniversityCS 416: Operating Systems Devices Mechanisms Open, close, read, write, ioctl, etc. Buffering Policies Protection Sharing? Scheduling?

18 Rutgers UniversityCS 416: Operating Systems Windows 2000 Block Diagram

19 Rutgers UniversityCS 416: Operating Systems Next Time Processes Read Silberschatz