Chapter 1 Computer System Overview

Similar documents
Operating Systems: Internals and Design Principles. Chapter 1 Computer System Overview Seventh Edition By William Stallings

Chapter 1 Computer System Overview

Chapter 1 Computer System Overview

CSC 553 Operating Systems

Operating Systems: Internals and Design Principles, 7/E William Stallings. Chapter 1 Computer System Overview

Chapter 1: Introduction Dr. Ali Fanian. Operating System Concepts 9 th Edit9on

Chapter 1 Computer System Overview

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Chapter Seven Morgan Kaufmann Publishers

Computer Systems Overview

Four Components of a Computer System

Chapter Seven. Memories: Review. Exploiting Memory Hierarchy CACHE MEMORY AND VIRTUAL MEMORY

Chapter 2. OS Overview

Operating Systems. Lecture Course in Autumn Term 2015 University of Birmingham. Eike Ritter. September 22, 2015

Introduction to OS. Introduction MOS Mahmoud El-Gayyar. Mahmoud El-Gayyar / Introduction to OS 1

ENCE Computer Organization and Architecture. Chapter 1. Software Perspective

CS 471 Operating Systems. Yue Cheng. George Mason University Fall 2017

Module 2: Computer-System Structures. Computer-System Architecture

CS370 Operating Systems

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

CS370 Operating Systems

Course Details. Operating Systems with C/C++ Course Details. What is an Operating System?

Advanced Memory Organizations

Computer System Overview OPERATING SYSTEM TOP-LEVEL COMPONENTS. Simplified view: Operating Systems. Slide 1. Slide /S2. Slide 2.

Operating Systems. Lecture 09: Input/Output Management. Elvis C. Foster

Computer System Overview

CSC Operating Systems Spring Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. January 17 th, 2007.

Announcements. Operating System Structure. Roadmap. Operating System Structure. Multitasking Example. Tevfik Ko!ar

5.b Principles of I/O Hardware CPU-I/O communication

Operating Systems: Internals and Design Principles. Chapter 2 Operating System Overview Seventh Edition By William Stallings

3 rd Year V Semester

Caches and Memory Hierarchy: Review. UCSB CS240A, Winter 2016

Operating Systems. Introduction & Overview. Outline for today s lecture. Administrivia. ITS 225: Operating Systems. Lecture 1

Introduction to Microprocessor

CPSC 341 OS & Networks. Introduction. Dr. Yingwu Zhu

I/O Systems. Jo, Heeseung

5 Computer Organization

CS370 Operating Systems

Introduction. TDDI04, K. Arvidsson, IDA, Linköpings universitet Contents. What is an Operating System (OS)?

Final Lecture. A few minutes to wrap up and add some perspective

Lecture 1 Introduction (Chapter 1 of Textbook)

18-447: Computer Architecture Lecture 16: Virtual Memory

Multiprocessor scheduling, part 1 -ChallengesPontus Ekberg

5 Computer Organization

Summary of Computer Architecture

CMSC 313 Lecture 26 DigSim Assignment 3 Cache Memory Virtual Memory + Cache Memory I/O Architecture

CS 261 Fall Mike Lam, Professor. Virtual Memory

Caches and Memory Hierarchy: Review. UCSB CS240A, Fall 2017

CPU issues address (and data for write) Memory returns data (or acknowledgment for write)

The personal computer system uses the following hardware device types -

C06: Memory Management

CSE Opera+ng System Principles

CIS Operating Systems Memory Management Cache. Professor Qiang Zeng Fall 2015

Chapter 1: Introduction

Computer Systems Architecture I. CSE 560M Lecture 18 Guest Lecturer: Shakir James

Chapter 1: Introduction

CSC Operating Systems Fall Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. August 27 th, 2009.

Announcements. Computer System Organization. Roadmap. Major OS Components. Processes. Tevfik Ko!ar. CSC Operating Systems Fall 2009

Chapter Two. Hardware Basics: Inside the Box

6 - Main Memory EECE 315 (101) ECE UBC 2013 W2

ELE 758 * DIGITAL SYSTEMS ENGINEERING * MIDTERM TEST * Circle the memory type based on electrically re-chargeable elements

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester

I/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum)

I/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum)

LECTURE 10: Improving Memory Access: Direct and Spatial caches

Chapter 7: Main Memory. Operating System Concepts Essentials 8 th Edition

Lecture 13 Input/Output (I/O) Systems (chapter 13)

Department of Computer Science and Technology 2014

(Advanced) Computer Organization & Architechture. Prof. Dr. Hasan Hüseyin BALIK (4 th Week)

Introduction to Computing and Systems Architecture

OS Design Approaches. Roadmap. OS Design Approaches. Tevfik Koşar. Operating System Design and Implementation

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals

Topic 18: Virtual Memory

ECE 471 Embedded Systems Lecture 2

Lecture 5: Process Description and Control Multithreading Basics in Interprocess communication Introduction to multiprocessors

CIS Operating Systems Memory Management Cache and Demand Paging. Professor Qiang Zeng Spring 2018

Chapter 1: Introduction. Chapter 1: Introduction

Memory classification:- Topics covered:- types,organization and working

Memory Management! How the hardware and OS give application pgms:" The illusion of a large contiguous address space" Protection against each other"

Computer Performance

Chapter 8: Main Memory. Operating System Concepts 9 th Edition

Operating system Dr. Shroouq J.

I/O Design, I/O Subsystem, I/O-Handler Device Driver, Buffering, Disks, RAID January WT 2008/09

Memory Management! Goals of this Lecture!

Chapter 8: Main Memory

File Systems. Kartik Gopalan. Chapter 4 From Tanenbaum s Modern Operating System

CIS Operating Systems Memory Management Cache. Professor Qiang Zeng Fall 2017

Chapter 5B. Large and Fast: Exploiting Memory Hierarchy

Chapter 8: Memory- Management Strategies. Operating System Concepts 9 th Edition

Systems Programming and Computer Architecture ( ) Timothy Roscoe

CS 261 Fall Mike Lam, Professor. Memory

CS3350B Computer Architecture

8: Memory Management

OPERATING SYSTEM. PREPARED BY : DHAVAL R. PATEL Page 1. Q.1 Explain Memory

WEEK 7. Chapter 4. Cache Memory Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Memory Management. Goals of this Lecture. Motivation for Memory Hierarchy

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

CSC 2405: Computer Systems II

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Transcription:

Operating Systems: Internals and Design Principles Chapter 1 Computer System Overview Seventh Edition By William Stallings

Course Outline & Marks Distribution Hardware Before mid Memory After mid Linux Scripting C/C# programming Process Before mid Deadlock Before and after mid Scheduling Before and after mid

Course Outline & Marks Distribution Quizzes = 4 (each of 2.5 marks) Assignments Programming =3 (each of 2 marks) Reading/ writing=3 (each of 2 marks) Term Report=1 (of 8 marks) Midterm Final Term Text Book: Operating Systems by William Stalling Reference: 1. Tanenbaum's "Modern Operating Systems", 2 nd or 3 rd Edition 2. Operating System Principles (7 th edition) by Silberschatz

Objectives The students will be able to: Learn the role of system software s Learn the theory of how operating systems are constructed. Develop practical skills that can help to understand and to modify the coding of operating systems(minix, Unix) Learn the use of middleware in the combination with Operating systems. Acquire the knowledge of various kinds of operating systems Learn the concept of THREADS that will be helpful for the students interested in CLIENT-SERVER applications.

Internals and Design Principles What we learn this week. What is an Operating System? Basic Elements. Instruction Execution. Interrupt I/O Memory

Operating System An operating system (OS) is the interface between the user and the hardware An OS provides standard services (System calls ) which are implemented on the hardware, including: Processes, I/O devices, CPU scheduling, memory management, file system, networking A Manager allocates resources efficiently and fairly, protects users from each other, provides safe and secure communication

Goals of Operating System System view

Goals of Operating System Exploits the hardware resources of one or more processors (cores) Goals Convenience Execute user programs and make solving user problems easier. Make the computer system convenient to use. To use the computer hardware in an efficient manner. Efficiency

Basic Elements

Logical Units Graphical Processing Unit: Provide efficient computation on arrays of data using Single-Instruction Multiple Data (SIMD) techniques. Used for general numerical processing.physics simulations for games. Computations on large spreadsheets Digital Signal Processor: Deal with streaming signals such as audio or video. Used to be embedded in devices like modems. Encoding/decoding speech and video.support for encryption and security System on a Chip: Components such as DSPs, GPUs, codecs and main memory, in addition to the CPUs and caches, are on the same chip

Instruction Execution Processor Reads the instruction From main memory Processor Executes each instruction A program consists of a set of instructions stored in memory A CPU Cycle refers to a single pulse of the computer clock. For example, a 4 Mhz CPU will have 4 million CPU cycles per second.

Characteristics of a Hypothetical Machine

Program Execution load 940 add 941 Store 940

Interrupts Deviation from the normal sequencing of the processing Provided to improve processor utilization most I/O devices are slower than the processor processor must pause to wait for device wasteful use of the processor

Interrupts

Program Timing: Short I/O Wait

Example Time Sequence of Multiple Interrupts

Memory Hierarchy Major constraints in memory amount speed Expense (cost) Less capacity, Fast access speed Greater capacity, Slower access speed

Memory Types 1. Registers 1 KB 2. Cache (SRAM) 1 MB 3. Main Memory 512 MB 4. Disk 40 GB 5. Magnetic tape 1TB 6. Removable media 4GB Cache is the smallest memory placed between main memory and processor Invisible to OS Contains a copy of a portion of main memory Processor first checks cache Secondary Memory: Also referred to as auxiliary memory External Nonvolatile Used to store program and data files Primary memory is computer memory that is accessed directly by the CPU

Cache and Main Memory Disk Cache: A portion of main memory used as buffer to (temporarily) hold data (for disk)

cache size number of cache levels block size Main categories are: write policy mapping function replacemen t algorithm

DMA Direct Memory access 3- CPU involves in the beginning &ending 4- Free to perform other operations CPU Cache More efficient than interruptdriven or programmed I/O Memory 2- Interrupt is sent when task is done. Device 1- Transfers a block of memory w/o going through CPU

Multicore Computer Also known as a chip multiprocessor Combines two or more processors (cores) on a single piece of silicon (die) each core consists of all of the components of an independent processor In addition, multicore chips also include L2 cache and in some cases L3 cache

Intel Core i7 Figure 1.20 Intel Corei7 Block Diagram

Summary Basic Elements processor, main memory, I/O modules, system bus GPUs, SIMD, DSPs, SoC Instruction execution processor-memory, processor-i/o, data processing, control Interrupt/Interrupt Processing Memory Hierarchy Cache/cache principles and designs Multiprocessor/multicore