Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.

Slides:



Advertisements
Similar presentations
OPERATING SYSTEMS Lecturer: Szabolcs Mikulas Office: B38B
Advertisements

Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc
Introduction CSCI 444/544 Operating Systems Fall 2008.
Winter 2005 CMPE 151: Network Administration Lecture 2.
Operating Systems High Level View Chapter 1,2. Who is the User? End Users Application Programmers System Programmers Administrators.
Course Overview Introduction Computer System Structures
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
1 CS 333 Introduction to Operating Systems Class 2 – OS-Related Hardware & Software The Process Concept Jonathan Walpole Computer Science Portland State.
Operating Systems - Introduction S H Srinivasan
Figure 1.1 Interaction between applications and the operating system.
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
Chapter 1 Introduction 1.1 What is an operating system
1/16/2008CSCI 315 Operating Systems Design1 Introduction Notice: The slides for this lecture have been largely based on those accompanying the textbook.
Slide 1-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 1.
Computer Organization Review and OS Introduction CS550 Operating Systems.
CS 6560 Operating System Design Lecture 1. Overview 1.1 What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4.
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
Introduction Operating Systems. No. 2 Contents Definition of an Operating System (OS) Role of an Operating System History of Operating Systems Classification.
Chapter 1. Introduction What is an Operating System? Mainframe Systems
Operating Systems CS3502 Fall 2014 Dr. Jose M. Garrido
1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Operating System.
Three fundamental concepts in computer security: Reference Monitors: An access control concept that refers to an abstract machine that mediates all accesses.
Kernel, processes and threads Windows and Linux. Windows Architecture Operating system design Modified microkernel Layered Components HAL Interacts with.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
1 Operating System Overview. 2 Today’s Objectives Explain the main purpose of operating systems and describe milestones of OS evolution Explain fundamental.
Chapter 1 Introduction 1.1 What is an operating system
ITEC 502 컴퓨터 시스템 및 실습 Chapter 1: Introduction. ITEC 502 컴퓨터 시스템 및 실습 Chapter 1: Introduction Mi-Jung Choi DPNM Lab. Dept. of CSE,
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 E-Main: Phone:
1 Introduction. 2 A computer system consists of –hardware –system programs –application programs.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 7 OS System Structure.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System.
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.
INFORMATION SYSTEM-SOFTWARE Topic: OPERATING SYSTEM CONCEPTS.
CS333 Intro to Operating Systems Jonathan Walpole.
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.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Copyright ©: Nahrstedt, Angrave, Abdelzaher1 Operating System Overview Tarek Abdelzaher Lawrence Angrave Vikram Adve.
Chapter 1 Introduction  What is an operating system  History of operating systems  The operating system zoo  Computer hardware review  Operating system.
操作系统原理 OPERATING SYSTEM Chapter 1 Introduction 概 述.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
No. 1 Introduction Operating Systems’ Concepts and Structure.
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.
Overview of today’s lecture Major components of an operating system Structure and internal architecture of an operating system Monolithic Vs Micro-kernels.
Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved OPERATING SYSTEMS DESIGN.
CompSci 143A1 1. Introduction 1.1 The Role of Operating Systems - Bridge the “Semantic Gap” between Hardware and Application - Three Views of Operating.
10/2/20161 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Introduction to Operating Systems Concepts
Jonathan Walpole Computer Science Portland State University
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Mid Term review CSC345.
Today’s agenda Hardware architecture and runtime system
Lecture Topics: 11/1 General Operating System Concepts Processes
Introduction to Operating Systems
Introduction to Operating Systems
Lecture 3: Basic OS Concepts
Introduction to Operating Systems
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Operating System Introduction
Operating Systems Structure
Introduction and Overview
Presentation transcript:

Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1

No. 2 TUCN. Operating Systems. Lecture 1 Contents Definition of an Operating System (OS) Role of an Operating System History of Operating Systems Classification of Operating Systems Specific terms and concepts Structure of an OS Spring, 2008

No. 3 TUCN. Operating Systems. Lecture 1 The Definition of an OS Where comes the OS in? A computer system consists of: User software System software Hardware User Applications CompilersEditorsShells Operating System System hardware Spring, 2008

No. 4 TUCN. Operating Systems. Lecture 1 The Definition of an OS What is an OS? A system software A collection of procedures that: –manage all the system’s hardware resources –provide the users the environment in which they can: use the system resources run their own applications Spring, 2008

No. 5 TUCN. Operating Systems. Lecture 1 The Role of an OS Extended or virtual machine The external or the user point of view A top-down perspective –Hides the complexity of using the hardware devices –Provides the user a more convenient view of the system resources –Purpose: Convenience Resource manager The inside or the designer point of view A bottom-up perspective –Brings the hardware resources in a functional state –Provides each program with time and space for using resources –Purpose: Efficiency Spring, 2008

No. 6 A Classification of OSs Mainframe operating systems: OS/390 Server operating systems: UNIX, Windows 2000, Linux Multiprocessor operating systems PC operating systems: Windows 98, Windows ME, Macintosh, Linux Real-time operating systems: VxWorks, QNX Embedded operating systems: PalmOS, Windows CE, Windows Mobile, Symbia Spring, 2008TUCN. Operating Systems. Lecture 1

No. 7 TUCN. Operating Systems. Lecture 1 Specific Terms and Concepts Batch systems: no user interaction Multiprogramming: multiple programs loaded in memory Time-sharing: each process receives slices of CPU time Interactive systems : provides quick response to user’s actions Multi-user: distinction between users Network OS: users aware of the existence of multiple computers Distributed OS: looks like a traditional single-processor system Processes, Files, System Calls Spring, 2008

No. 8 TUCN. Operating Systems. Lecture 1 Computer Hardware (1) An OS is closely tied to the HW it runs on HW components –CPU –Memory –I/O devices Monitor Keyboard Storage devices (HDD, Floppy etc.) Others –BUSes Spring, 2008

No. 9 TUCN. Operating Systems. Lecture 1 Computer Hardware (2) Tanenbaum, Fig Monitor BUS Spring, 2008

No. 10 TUCN. Operating Systems. Lecture 1 CPU Functionality –fetch instructions from memory, decode and execute them Instruction set –has a specific set of instructions that can be executed –specific executable programs each processor can run Registers Program counter Stack pointer Many others – architecture dependent Machine state – saved at context switch Kernel vs. User mode of execution –switches between system calls hardware exceptions, interruptions Spring, 2008

No. 11 TUCN. Operating Systems. Lecture 1 Memory Should be extremely fast, large and cheap Hierarchy of layers –Registers: fastest, no delay, but limited size –Cache memory cache hits and misses –Main memory – RAM (Random Access Memory) –HDDs 2 orders of magnitude cheaper and larger then RAM, but 3 orders of magnitude slower mechanical device – heads, tracks (cylinders), sectors, –Magnetic tapes used as a backup for very large data sets very slow, but very cheap and removable Spring, 2008

No. 12 TUCN. Operating Systems. Lecture 1 I/O Devices Components –controller and the device itself Controller –Directly controls the physical device –Receives commands from the OS Device driver –Supplied by controller manufacturer –Inserted into the OS – run in kernel mode Functionality –Busy waiting –Interrupts Spring, 2008

No. 13 TUCN. Operating Systems. Lecture 1 Processes Definition A program in execution Consists of: executable code, data, stack, CPU registers value, and other information A process hierarchy (tree) A created two child processes: B and C B created three child processes: D, E, and F Process synchronization Inter-Process Communication (IPC) Spring, 2008

No. 14 TUCN. Operating Systems. Lecture 1 Files Definition A collection of related information An abstraction of data stored on HDD A process tree File system mounting File linking Spring, 2008

No. 15 TUCN. Operating Systems. Lecture 1 System calls (1) Definition –a call to an OS service –a trap into the OS code Examples of system calls –File manipulation: open(), read(), write(), lseek(), close() … –File system management: mkdir(), mount(), link(), chown() … –Process management: fork(), exec(), wait(), exit() … Spring, 2008

No. 16 TUCN. Operating Systems. Lecture 1 System Calls (2) Steps in making a system call There are 11 steps executing the system call: read (fd, buffer, nbytes) Spring, 2008

No. 17 TUCN. Operating Systems. Lecture 1 The Structure of an OS Architectures(1). Monolithic OS Spring, 2008

No. 18 TUCN. Operating Systems. Lecture 1 The Structure of an OS Architectures (2). Layered OS The Structure of the THE operating system Spring, 2008

No. 19 TUCN. Operating Systems. Lecture 1 The Structure of an OS Architectures (3). Client-Server The client-server model A distributed OS Spring, 2008

No. 20 TUCN. Operating Systems. Lecture 1 The Structure of an OS Architectures (4).Advantages … Advantages of micro-kernels the modules run in user mode  protection against bugs adaptability to use in distributed systems forces the programmers to adopt a modularize approach easily ported to other architectures better use of RAM than monolithic ones Modules in monolithic systems (Linux) - advantages monolithic OS faster than micro-kernel OS modularized approach platform independence frugal main memory usage no performance penalty Spring, 2008

No. 21 TUCN. Operating Systems. Lecture 1 Process manager: c reates, schedules and destroy processes Memory manager: a llocates and releases memory Disk manager I/O devices manager File system: c reate, read, modify, remove etc. files Communication system Protection system Shells text interface – command interpreter graphical interface The Structure of an OS Components Spring, 2008

No. 22 TUCN. Operating Systems. Lecture 1 Readings Andrew Tannenbaum, “Modern Operating Systems”, second edition, Prentice Hall, 2001, pgs. 1-20, D. Bovet, M. Cesati, “Understanding Linux Kernel”, O’Reilly, 2001, pgs Spring, 2008