Winter 2005 CMPE 151: Network Administration Lecture 2.

Slides:



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

Threads, SMP, and Microkernels
Operating System Structure
Winter CMPE 155 Week 2. Winter Review? Computers Operating Systems Kernels Distributed Systems.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
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.
OS Spring’03 Introduction Operating Systems Spring 2003.
Operating Systems - Introduction S H Srinivasan
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
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.
Ceng Operating Systems 1-1 Chapter 1: Introduction What is the aim of the subject? Why are OSes important? What is an OS? A bit of history Some basic.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
1 Chapter 1: Introduction What is the aim of the subject? What is the aim of the subject? Why are OSes important? Why are OSes important? What is an OS?
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
O PERATING S YSTEMS BIT OUTLINE Introduction, concepts, review & historical perspective Processes Synchronization Scheduling Deadlock Memory management,
Chapter 51 Threads Chapter 5. 2 Process Characteristics  Concept of Process has two facets.  A Process is: A Unit of resource ownership:  a virtual.
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
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.
Operating System A program that controls the execution of application programs An interface between applications and hardware 1.
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
Chapter 1. Introduction What is an Operating System? Mainframe Systems
 What is OS? What is OS?  What OS does? What OS does?  Structure of Operating System: Structure of Operating System:  Evolution of OS Evolution of.
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
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.
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.
Operating Systems Principles Lecture 1: Introduction 主講人:虞台文.
Chapter 1 Introduction 1.1 What is an operating system
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 Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview Part 2: History (continued)
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
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.
Chapter 1: Introduction and History  Where does the operating system fit in a computing system?  What does the operating system achieve?  What are the.
Processes Introduction to Operating Systems: Module 3.
Copyright ©: University of Illinois CS 241 Staff1 Operating Systems Orientation.
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
MODERN OPERATING SYSTEMS Chapter 1 Introduction
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
1 Operating System (CS – 772) Instructor: Nasir Minhas Assistant Professor UIIT PMAS – UAAR
Copyright ©: Nahrstedt, Angrave, Abdelzaher1 Operating System Overview Tarek Abdelzaher Lawrence Angrave Vikram Adve.
Operating Systems.
Chapter 1 Introduction  What is an operating system  History of operating systems  The operating system zoo  Computer hardware review  Operating system.
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.
CompSci 143A1 1. Introduction 1.1 The Role of Operating Systems - Bridge the “Semantic Gap” between Hardware and Application - Three Views of Operating.
Introduction to Operating Systems Concepts
Operating System Overview
Lecture 3: Basic OS Concepts
OS Organization.
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Lecture 3: Basic OS Concepts
Operating Systems: A Modern Perspective, Chapter 3
Outline Operating System Organization Operating System Examples
Operating System Introduction
Operating Systems Principles Lecture 1: Introduction
Operating Systems Structure
Operating System Introduction
Introduction and Overview
III. Operating System Structures
Presentation transcript:

Winter 2005 CMPE 151: Network Administration Lecture 2

Winter 2005 Review? Computers Operating Systems Kernels Distributed Systems

Winter 2005 What is an OS? Machine/resource manager. Physical Devices Microarchitecture Instruction Set Architecture Operating System Compilers, Editors, etc. Hardware Application programs

Winter 2005 OS as extended machine… Top-down view. Layer of software that hides hardware. Provides programmer easier instructions. E.g., read block from file. (Part of) the OS runs in supervisor (privileged) mode: can execute priviledged instructions (e.g., access to physical decices through drivers).

Winter 2005 OS as resource manager Bottom-up view. Provides orderly and controlled allocation of resources. Provides (“concurrent”) programs (fair) access to resources (processor, disk, printer). Time (e.g., CPU) and space (e.g., memory) multiplexing.

Winter 2005 OS History

Winter 2005 First generation: Vacuum tubes: machines took whole rooms! Machine language programming (plugboard wiring). No OS.

Winter 2005 Second generation: Transistors made computers commercially viable. Builders, operators, users. Mainframes: multimillion dollar machines. Punch cards, input and output tapes. Batch systems.

Winter 2005 Third generation: ICs. Multiprogramming. Machine shared by “concurrent” programs. Memory partitions hold multiple jobs. Timesharing. Multiprogramming still batch processing: scientific computation and commercial data processing. Cheap terminals: interactive use. Interactive service + batch processing.

Winter 2005 Fourth generation: 1980-… High-scale circuit integration. Computer miniaturization. Mainframes -> minicomputers -> microcomputers or PCs. PC OSs: CP/M, DOS, MS-DOS. GUI-based OSs: UNIX-based, MS Windows-based, MAC OS, …

Winter 2005 Modern OSs Mainframe OSs: IBM’s OS/390, DEC’s VMS. Server OSs: Solaris, FreeBSD, etc. PC OS: Linux, MacOS, Windows… Real-time OSs: VxWorks. Embedded OSs: Linux, PalmOS, Windows CE Smart card OSs

Winter 2005 Basic OS Concepts

Winter 2005 Processes Process: program in execution. Address space: memory usable by program (text, data, stack). State: registers. OS uses process table to keep track of processes. Processes can create other (child) processes.

Winter 2005 Inter-Process Communication (IPC) Shared memory. Processes communicate/synchronize through a shared data item. Message passing. Processes communicate via messages.

Winter 2005 Shared Memory Processes must access shared data in a mutual exclusive way. Primitives: Semaphores: Dijkstra(1965) P(S) and V(S) operations. Atomic (indivisible) operations. (Conditional) Critical Regions Monitors

Winter 2005 Message Passing Processes communicate/synchronize by sending/receiving messages. Primitives: Send(message), receive(message). Issues: Synchronous versus asynchronous. Reliable versus unreliable.

Winter 2005 Distributed Shared Memory Sharing data among computers that don’t share physical memory. DSM provides shared memory abstraction. Read- and write-like primitives. Needs message passing to convey updates among physically disjoint processing elements.

Winter 2005 Deadlocks Shared data/resource may lead to deadlock: processes get “stuck”. Example: v is using r1 and requests r2; w is using r2 and requests r1. vw

Winter 2005 Memory Management Share memory among several processes. Monoprogramming: memory sharing between OS and program (embedded OSs). Multiprogramming: multiple processes (partially or totally) in memory. Swapping. Virtual memory: paging.

Winter 2005 I/O OS I/O subsystem manages I/O devices. Device-dependent (device drivers) or independent. File system: File as an abstraction. Basic operations: create, delete, read, write. Hierarchical file systems. Dynamically attach tree branches (e.g., mount system call in UNIX). Access control: permissions.

Winter 2005 System Calls Interface between OS and user program: set of system calls. E.g., access a file, create a process, etc. Like making a special procedure call. System calls executed by kernel. Calling program pushes parameters onto stack; calls library; library routine (same name as system call) executes TRAP, switching to kernel mode; OS handles call; returns control to library; library returns to user program. Example system calls for file system open, close, read, write, mkdir, rmdir.

Winter 2005 System Calls User-level process Kernel Physical machine System call to access physical resources System call: implemented by hardware interrupt (trap) which puts processor in supervisor mode and kernel address space; executes kernel-supplied handler routine (device driver) executing with interrupts disabled.

Winter 2005 Kernels Executes in supervisor mode. Privilege to access machine’s physical resources. User-level process: executes in “user” mode. Restricted access to resources. Address space boundary restrictions.

Winter 2005 Kernel Functions Memory management. Address space allocation. Memory protection. Process management. Process creation, deletion. Scheduling. Resource management. Device drivers/handlers.

Winter 2005 Kernel and Distributed Systems Inter-process communication: RPC, MP, DSM. Distributed (Networked) File systems. Some parts may run as user-level and some as kernel processes.