Operating Systems - Introduction S H Srinivasan

Slides:



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

CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
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.
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
© 2004, D. J. Foreman 1 CS350 Operating Systems. © 2004, D. J. Foreman 2 Administrivia  Assignments ■ Homework on most chapters ■ Approximately 8 lab.
Operating Systems BTEC IT Practitioners.
Figure 1.1 Interaction between applications and the operating system.
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.
Guide To UNIX Using Linux Third Edition
Xuan Guo Chapter 1 What is UNIX? Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003 Original Notes.
OS Organization. OS Requirements Provide resource abstractions –Process abstraction of CPU/memory use Address space Concurrency Thread abstraction of.
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.
Chapter 3 Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Operating Systems Bryce Boe 2012/08/07 CS32, Summer 2012 B.
Computer Organization Review and OS Introduction CS550 Operating Systems.
Operating System A program that controls the execution of application programs An interface between applications and hardware 1.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
CS240 Computer Science II Introduction to Unix Based on “UNIX for Programmers and Users” by G.Class and K. Ables.
Operating Systems CS3502 Fall 2014 Dr. Jose M. Garrido
WEEK 1 COURSE INTRODUCTION INTRODUCTION TO OPERATING SYSTEMS OPERATING SYSTEM STRUCTURES Operating Systems CS3013 / CS502.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Operating System.
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 2 Operating System Overview
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
INVITATION TO COMPUTER SCIENCE, JAVA VERSION, THIRD EDITION Chapter 6: An Introduction to System Software and Virtual Machines.
CS 390 Unix Programming Environment Summer Suchindra Rengan - CS3902 Course Details Instructors Suchindra Rengan – ‘sachin’ ( Section 001)
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview Part 2: History (continued)
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.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 2 (Part II) Operating System Overview.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
Operating System 2 Overview. OPERATING SYSTEM OBJECTIVES AND FUNCTIONS.
1 Operating Systems: Principles and Practice Cpr E 308.
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
1 Operating System Overview Chapter 2. 2 Operating System A program that controls the execution of application programs An interface between applications.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
Introduction 1 Chapter 1. Introduction History and Proliferation Mandate for Change What’s Good and Wrong Scope of this course.
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Lecture 1: Network Operating Systems (NOS) An Introduction.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Chapter 1 Introduction  What is an operating system  History of operating systems  The operating system zoo  Computer hardware review  Operating system.
System Programming Basics Cha#2 H.M.Bilal. Operating Systems An operating system is the software on a computer that manages the way different programs.
WHY AN OPERATING SYSTEM (OS) OS interacts with hardware and manages programs. Programs not expected to know which hardware they will run on. Must be possible.
Lab #1: UNIX crash course Introduction: History of Operating Systems Lesson #1: Navigating directories Lesson #2: Creating and editing files with emacs.
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.
UDel CISC361 Study Operating System principles - processes, threads - scheduling - mutual exclusion - synchronization - deadlocks - memory management -
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
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
An Introduction to Operating Systems
CASE STUDY 1: Linux and Android
Introduction to Operating System (OS)
What is an Operating System?
Computer Software CS 107 Lecture 2 September 1, :53 PM.
OS Organization.
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Operating Systems: A Modern Perspective, Chapter 3
OS Organization.
Operating System Introduction
Introduction and History
Operating System Introduction
Presentation transcript:

Operating Systems - Introduction S H Srinivasan

What is an OS? Collection of software –that makes the computer usable processes sharing –useful to to many applications abstraction Between the application and the hardware

Layers Banking Airline Games APPLICATIONS Compilers Editors Shell SYSTEM system calls kernel PROGRAMS device drivers Machine language Microprogramming HARDWARE Physical devices

Why an OS? Functionality (ease of use) –timesharing –networking Abstractions (ease of programming) –sockets, pipes,... Performance (efficiency) –manage resources efficiently

OS as an idealized machine Physical machine –single processor –limited memory –complex devices –limited security physical machine + OS = idealized machine

Idealized Machine As many processors as the number of programs Unlimited memory Clean and uniform device interfaces Access control Efficient resource use

OS in action % ls Mail work games % Behind the scenes operations: (shell) print prompt WAIT for user input (user) type “ls” (device driver) read the keyboard inform the kernel (kernel) send it to the shell (shell) look for executable code “ls” make “system calls” (kernel) determine the type of file system cached, on-disk, cdrom, network

OS in action (contd) (shell&kernel): get the contents of directory (shell): format the output (device driver): display on CRT Other operations: file permissions (can’t execute a text file) directory access (ls /secret) quota (ls > listing)

OS in action (bigger picture) init init init init getty getty getty login /bin/sh /bin/sh /bin/date

Is the complexity worth? Abstraction –process –file (harddisk, cdrom, network, terminal) Sharing –cpu, memory, devices Control –access (file, memory, device) Performance

Layers Shell - user –cd System calls - system programmer –chdir Software architecture - designer –kernel, file system, networking,... Implementation

Concepts Principles behind architecture and implementation well-known algorithms well-known problems

Well-known OSs Multics Unix –Linux –BSD MS Windows Realtime OS

History of OS Late 50’s - Early 60’s –batch processing Late 60’s - 70’s –Multiprogramming –time sharing –new abstractions

History of OS (cont’d) 80s - 90s –GUI –network support –network transparency

Multiprogramming Goal: keep CPU busy Fact: I/O times are large When one program is waiting for I/O, run another program => Multiple programs resident in memory Scheduling: non-preemptive

Time sharing Goal: allow access to multiple users at the same time Fact: People’s response time is large Schedule the programs fast Scheduling: preemptive

Major Unix Flavors First Edition: Bell Labs, BSD: UC, Berkeley, 1977 System V: 1983 POSIX standard

Linux (open source) Solaris (Sun) AIX (IBM) FreeBSD (open source)

OS organization Libraries process process process (user) Kernel Device Drivers (supervisor) Processor(s) Main Memory Devices

Kernel Process & resource manager Memory manager File manager Device manager

Processor Modes Mode bit: supervisor or user Supervisor mode –can execute all machine instructions –can reference all memory locations User mode –subset of instructions –subset of memory locations

Kernel Trusted, management software executes in supervisor mode can enter user mode How does a user program invoke a kernel operation?

Trap instruction Trap is like a function call –mode is set to supervisor –address of function is looked up from a table –the function body is executed Direct invocation of the function is not permitted

Other OS organizations Object-oriented –object = data + associated procedures Microkernel –most of the services implemented at the user level (servers) –kernel provides only the communication between servers

Realtime OS Performance guarantees

Administration Class webpage – Bulletin board –send mail to Section: Fri 12:20-1:10, CSB 001 Text: Modern Operating Systems, Tanenbaum

Evaluation Four group (of 3) assignments –programming –report –12.5% each Midterm (20%) Final (30%)