Operating Systems. Overview. Dr Alun Moon. Computing, Engineering and Information Sciences. 27th September 2011

Similar documents
Chapter 1: Introduction

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

Chapter 1: Introduction. Chapter 1: Introduction

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

Chapter 1: Introduction. Operating System Concepts 8 th Edition,

CS420: Operating Systems

To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

Chapter 1: Introduction

Chapter 1: Introduction. Operating System Concepts 8th Edition,

European University of Lefke. Instructor: Dr. Arif SARI

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

7/20/2008. What Operating Systems Do Computer-System Organization

Chapter 1: Introduction

CS420: Operating Systems

DM510 Operating Systems. Jacob Aae Mikkelsen

Operating System Services

Lecture 1 Introduction (Chapter 1 of Textbook)

CS370 Operating Systems

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems

Introduction to Operating Systems (Part II)

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

CS370 Operating Systems

Lecture 1 - Operating System Overview

Chapter 2: Operating-System Structures. Operating System Concepts 8 th Edition

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Module 3: Operating-System Structures

System Call System Program Linker/Loader with Examples Types of computing Environment

Operating-System Structures

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

CS30002: Operating Systems. Arobinda Gupta Spring 2017

CS3600 SYSTEMS AND NETWORKS

Introduction to Operating Systems

Operating System Review

Dinosaurs? & Dinosaur Wars. CSCI 6730 / 4730 Operating Systems. Questions? Outline & Questions. Poll? Popularity: The OS Market Share

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

Operating-System Structures

CSE Opera+ng System Principles

Operating System Concepts 9 th Edit9on

Dinosaurs? & Dinosaur Wars. Outline & Questions. Evolution of our Textbook. Poll? Questions?

Chapter 3: Operating-System Structures

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

CHAPTER 1 - INTRODUCTION. Jacob Aae Mikk elsen

Introduction. Operating Systems (Fall/Winter 2018) Yajin Zhou ( Zhejiang University

Chapter 13: I/O Systems

Frederick P. Brooks tar dinosaurs tar tar tar pit

Module 3: Operating-System Structures. Common System Components

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management

COURSE OVERVIEW & OPERATING SYSTEMS CONCEPT Operating Systems Design Euiseong Seo

Last class: OS and Architecture. OS and Computer Architecture

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components

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

Chapter 3: Operating-System Structures

Introduction. CS3026 Operating Systems Lecture 01

Introduction. Chapter Prof. Amr El-Kadi

NETW3005 Operating Systems Lecture 1: Introduction and history of O/Ss

OPERATING SYSTEM OVERVIEW

Operating Systems Spring 2013, Ort Braude College Electrical Engineering Department

The Lesson Plan of OS. The syllabus of OS. Access the lesson plan and syllabus at

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

OPERATING SYSTEMS Lecture Notes. Prepared by K.Rohini, Assistant Professor, CSE Department, GVPCEW.

(Refer Slide Time: 1:26)

OPERATING SYSTEMS UNIT - 1

OS: An Overview. ICS332 Operating Systems

Four Components of a Computer System. Operating System Concepts 7 th Edition, Jan 12, 2005

Chapter 3: Operating-System Structures

Module 1: Introduction

COSC243 Part 2: Operating Systems

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

SRIMAAN COACHING CENTRE-TRB-COMPUTER INSTRUCTORS STUDY MATERIAL CONTACT: III

Computer-System Architecture (cont.) Symmetrically Constructed Clusters (cont.) Advantages: 1. Greater computational power by running applications

Module 1: Introduction. What is an Operating System?

Some popular Operating Systems include Linux Operating System, Windows Operating System, VMS, OS/400, AIX, z/os, etc.

Operating Systems. studykorner.org

Chapter 13: I/O Systems

Introduction. Chapter Prof. Amr El-Kadi

Four Components of a Computer System

Overview of Operating Systems

Introduction CHAPTER. Review Questions

Chapter 1: Introduction

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

1. Operating System Concepts

CSC 453 Operating Systems

UNIT 2. OPERATING SYSTEM STRUCTURES

EECS 3221 Operating System Fundamentals

Chapter 1: Introduction. Operating System Concepts 8th Edition,

EECS 3221 Operating System Fundamentals

Computer-System Structures

Chapter 13: I/O Systems

Chapter 13: I/O Systems. Chapter 13: I/O Systems. Objectives. I/O Hardware. A Typical PC Bus Structure. Device I/O Port Locations on PCs (partial)

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

Topics: Early systems and OS overview Skim Chapters 1-2 of SGG Read Chapter 1 of USP CS 3733 Operating Systems

Introduction to Computer Systems and Operating Systems

HIGH PERFORMANCE COMPUTING: MODELS, METHODS, & MEANS OPERATING SYSTEMS 1

I/O Systems. 04/16/2007 CSCI 315 Operating Systems Design 1

OPERATING SYSTEMS OVERVIEW

ELEC 377 Operating Systems. Week 1 Class 2

OPERATING SYSTEMS. Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne

Module 12: I/O Systems


Overview of Operating Systems

Transcription:

Operating Systems Overview Dr Alun Moon Computing, Engineering and Information Sciences 27th September 2011 Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 1 / 16

Chapters 1 & 2 Galvin Silberschatz. Operating System Concepts. Wiley, 6 edition, 2003. Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 2 / 16

What does an OS do? User System maximise use of resources share resources fairly allocate and manage resources control system Disk mouse keyboard printer monitor Disk Controller USB controller Graphics Adapter CPU Memory Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 3 / 16

What does it do? The OS is intermediate between a user of a computer and the computer hardware It manages efficiently the CPU, memory, secondary storage, communucations (network, etc), peripherals It manages the Execution, running, synchronisation of application processes/jobs (running programs) It provides user interfaces to the computer system convenient to use - one or more shells Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 4 / 16

Why have OSs? In early computing systems (and more recent embedded computing systems) a program running on the CPU read data from memory or from input peripherals, computed, wrote data to memory or output peripherals. Not scaleable! We want our system to manage several tasks concurrently Not efficient! Reading from the disk or network is 1000 times slower than performing a computation: we want the CPU to be using time efficiently. Our system may have several cooperating CPUs, some with dedicated functions like memory controllers, disk controllers, video controller, network hardware. We need a lower layer of software to run these tasks and to manage/coordinate them, and pprovide services to an upper layer of application software. This lower layer comprises the device drivers and the operating system kernel Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 5 / 16

Users system applications shells and commands compilers and interpreters system libraries System call interface signals handling file system CPU Scheduling character I/O System block I/O system paging terminal drivers disk drivers virtual memory Terminal controllers terminals kernel interface disk controllers disks memory controllers physical memory Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 6 / 16

Good Operating System Features A good OS - maximises machine utilization maximises system throughput minimises response time reduce the need for operator action, intervention allows the user to specify requirements easily (and meet those requirements as far as possible) allocates resources (file handles, video,...) to jobs record usage of resources Some of these requirements be conflict! Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 7 / 16

Good Operating System Features - Exercise List some essential characteristics of an OS for: a washing machine controller an automatic pilot for an aeroplane a general purpose office PC a computer running an accountancy package a web server Consider the following desirable OS characteristics - Fair allocation of system resources to tasks Maximising system throughput Reliability Meet user deadlines Ease of use Efficient use of storage For each of the systems, prioritise these characteristics. Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 8 / 16

Process Management Process = running program - a unit of work within the system. A process needs resources to accomplish its task, eg CPU, memory, I/O On process termination, OS reclaims reusable resources A single-threaded process has one program counter specifying location of next instruction to execute. Process executes instructions sequentially, one at a time, until completion Multi-threaded process has one program counter per thread A typical system has many processes, some user, some operating system running concurrently on one or more CPUs Concurrency achieved by multiplexing the CPUs among the processe /threads Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 9 / 16

Memory Management All data in memory before and after processing All instructions in memory in order to execute Memory management determines what is in memory when, to optimise CPU utilisation and responsiveness to users Memory management activities include - Keeping track of which parts of memory are currently being used and by whom Deciding which processes, data to move into and out of memory Allocating and deallocating memory space as needed Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 10 / 16

Storage Management Main memory only large storage medium that the CPU can access directly Secondary storage provides large nonvolatile storage Magnetic disks Disk surface is logically divided into tracks, subdivided into sectors The disk controller determines the logical interaction between the device and the computer Solid-state drives flash memory devices that behave like disk drives Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 11 / 16

Storage Management Caching copying information into faster storage system; main memory can be viewed as a last cache for secondary storage Important principle, performed at many levels in a computer Data in use copied from slower to faster storage temporarily Faster storage (cache) checked first to determine if information is there; if it is, data used directly from the cache (fast); if not, data copied to cache and used there Cache smaller than storage being cached; so cache management important design problem. How big? What data refresh policy? Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 12 / 16

Storage Management OS provides uniform, logical view of information storage - files, devices File-System management Files usually organised into directories Access control determines who has what level of access to what OS activities include Creating, deleting, manipulating files and directories Mapping files onto secondary storage Backup of files onto stable (non-volatile) storage media OS activities Free-space management Storage allocation Disk scheduling Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 13 / 16

Input, Output OS hides peculiarities of hardware devices from the user I/O subsystem responsible for Memory management of I/O: buffering: storing data temporarily while it is being transferred caching: storing parts of data in faster storage for performance spooling: the overlapping of output of one job with input of other jobs General device-driver interface Drivers for specific hardware devices Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 14 / 16

Protection, Security Protection controlling access of processes or users to resources of the OS Security defence of the system against internal and external attacks denial-of-service, worms, viruses, identity theft, theft of service Systems generally first distinguish among users, to determine who can do what User IDs (with password): one per user User ID associated with all files, processes of that user to determine access control Group identifier (group ID) allows a set of users to be defined and controls managed Privilege escalation allows user to change to effective ID with more rights Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 15 / 16

Computing Environments stand-alone v networked client-server computing client, server computers communicating over a network a client sends a request to a server server responds to request, sends response to client examples: file server, application server, DB server peer-to-peer computing node broadcasts request for service, listens globally for requests it can fulfil web-based computing Dr Alun Moon (ceis:nu) Operating Systems 27th September 2011 16 / 16