Lecture 1: Introduction CS170 Spring 2015 Chapter 1, the text book. T. Yang.

Slides:



Advertisements
Similar presentations
Interactive lesson about operating system
Advertisements

Operating System Structures
Dr. Kalpakis CMSC 421, Operating Systems. Fall Introduction.
Overview 1CS Overview. Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system.
Adopted from and based on Textbook: Operating System Concepts – 8th Edition, by Silberschatz, Galvin and Gagne Updated and Modified by Dr. Abdullah Basuhail,
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 1: Introduction Slides from the text book with changes. TY 2010.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 1: Introduction.
Chapter 1: Introduction
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Objectives  To provide a grand tour of the.
Bilkent University Department of Computer Engineering
Modified from Silberschatz, Galvin and Gagne ©2009 CS 446/646 Principles of Operating Systems Lecture 1 Chapter 1: Introduction.
Lecture 1 Introduction (Chapter 1 of Textbook)
Lecture 2 Chapter 1: Introduction (cont)
Bilkent University Department of Computer Engineering
CSRU 3595 Operating Systems Tuesday / Friday 10:00-11:15am JMH 138 C
Chapter 1: Introduction
Chapter 1 Introduction to Operating System Bernard Chen Spring 2007.
What do operating systems do? manage processes manage memory and computer resources provide security features execute user programs make solving user.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts What is an Operating System? A program that acts as an intermediary.
Process Management A process is a program in execution. It is a unit of work within the system. Program is a passive entity, process is an active entity.
Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 1: Introduction What Operating Systems Do Computer-System Organization.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 1: Introduction.
Chapter 1: Introduction
Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 1: Introduction.
CS212: OPERATING SYSTEM Lecture 1: Introduction 1.
Chapter 1. Introduction What is an Operating System? Mainframe Systems
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Operating Systems CSCI 411.
1.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Operating System Course Instructor: Rasool Jalili,
Chapter 1: Introduction March 5 th, 2009 Instructor: Hung Q. Ngo Kyung Hee University.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 1: Introduction What Operating Systems Do (previous.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Operating Systems Chapter 1: Introduction.
Chapter 1: Introduction
1 Chapter 1: Introduction. 2 What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Operating-System.
1.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Caching Important principle, performed at many levels in a computer (in.
Welcome to The University of Lahore Sargodha Campus.
Chapter 1. Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 12, 2005 Introduction Introduction What.
Operating Systems Introduction to Operating System (OS)
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 1: Introduction Revised and updated by David Sarne.
Review of Computer System Organization. Computer Startup For a computer to start running when it is first powered up, it needs to execute an initial program.
CSE Operating System Principles
Introduction to Operating System. 1.1 What is Operating System? An operating system is a program that manages the computer hardware. It also provides.
Operating System (Reference : OS[Silberschatz] + Norton 6e book slides)
Chapter 1: Introduction Narzu Tarannum(NAT) Reff: BIS.
Operating System Concepts. 1.2 Introduction What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 1: Introduction.
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Objectives To provide a grand tour of the major operating.
Chapter 1: Introduction Lecture 1 Part 1
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1 Introduction to Operating System
Chapter 1: Introduction
Chapter 1: Introduction Lecture 1 Part 1
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Presentation transcript:

Lecture 1: Introduction CS170 Spring 2015 Chapter 1, the text book. T. Yang

Main Points (for today) What does OS do? Software to manage a computer’s resources for its users and applications Process Management Memory Management Storage Management Protection and Security Computer system background OS challenges Performance, reliability, security, portability, …

Operating Systems Management Easy to use Fast Reliable Resource

Computer-System Architecture Multi-core systems growing in use and importance Also known as multiprocessors, parallel systems, tightly-coupled systems

Clustered Systems Like multiprocessor systems, but multiple systems working together Usually sharing storage via a storage-area network (SAN) Provides a high-availability service which survives failures Some clusters are for high-performance computing Applications must be written to use parallelization Cloud computing

Execution Flow

Computer-System Operation Bootstrap program is loaded at power-up or reboot Typically stored in ROM, EPROM, or Flash memory, generally known as firmware Loads operating system kernel, initialize, & starts execution With power is on, I/O devices and the CPU can execute concurrently Each device controller is in charge of a particular device type. CPU moves data from/to main memory to/from device local buffers OS is interrupt-driven Device controller informs CPU that it has finished its operation by causing an interrupt A trap is a software-generated interrupt caused either by an error or a user request

Interrupt Timeline

Operating System Structure Multiprogramming needed for efficiency Multiprogramming organizes jobs (code and data) so CPU always has one to execute One job selected and run via job scheduling When it has to wait (for I/O for example), OS switches to another job Timesharing (multitasking) is logical extension in which CPU switches jobs so frequently that users can interact with each job while it is running, creating interactive computing Response time should be < 1 second Each user has at least one program executing in memory  process If several jobs ready to run at the same time  CPU scheduling If processes don’t fit in memory, swapping moves them in and out to run Virtual memory allows execution of processes not completely in memory

Transition from user to kernel mode in executing a system operation Dual-mode operation allows OS to protect itself and other system components User mode and kernel mode Mode bit provided by hardware

Storage Structure Main memory – only large storage media that the CPU can access directly Secondary storage – extension of main memory that provides large nonvolatile storage capacity Hard disk drives (Magnetic disks) Solid state drives (SSD)

Storage-Device Hierarchy n Based on l Speed l Cost l Volatility n Caching

Performance of Various Levels of Storage Movement between levels of storage hierarchy can be explicit or implicit.

Memory Management All data in memory. All instructions in memory in order to execute Memory management activities Keeping track of which parts of memory are currently being used and by whom Deciding which processes (or parts thereof) and data to move into and out of memory Allocating and deallocating memory space as needed

Storage Management OS provides uniform, logical view of information storage Abstracts physical properties to logical storage unit - file Each medium is controlled by device (i.e., disk drive, tape drive) Varying properties include access speed, capacity, data-transfer rate, access method (sequential or random) File-System management Files usually organized into directories Access control on most systems to determine who can access what OS activities include Creating and deleting files and directories Primitives to manipulate files and dirs Mapping files onto secondary storage Backup files onto stable (non-volatile) storage media

Access Speed Processor Memory Spinning Disk < 10’s ns~100 ns ns Factor 1 Factor ~ Factor ~ – ~ Caching for handling speed difference ProcessorsMemory Very, very, very, very, very fast Very, very, very fast Disk Very, very slow comparatively Access Speed Processor Memory Solid-State-Drive Spinning Disk < 10’s ns~100 ns~ ns ns Factor 1 Factor ~ Factor ~ Factor ~ – ~ Fast, small local data store Slow, bigger remote data store Caching

Protection and Security Protection – any mechanism for controlling access of processes or users to resources defined by the OS Security – defense of the system against internal and external attacks Huge range, including denial-of-service, worms, viruses, identity theft, theft of service Systems generally first distinguish among users, to determine who can do what User identities (user IDs, security IDs) include name and associated number, one per user User ID then associated with all files, processes of that user to determine access control Group identifier (group ID) allows set of users to be defined and controls managed, then also associated with each process, file Privilege escalation allows user to change to effective ID with more rights

Increasing Complexity of OS Software From MIT’s course

Open-Source Operating Systems Operating systems made available in source- code format rather than just binary closed- source Started by Free Software Foundation (FSF), which has GNU Public License (GPL) Examples include GNU/Linux, BSD UNIX (including core of Mac OS X), and Sun Solaris