CSS430 Introduction1 Textbook Ch1 These slides were compiled from the OSC textbook slides (Silberschatz, Galvin, and Gagne) and the instructor’s class.

Slides:



Advertisements
Similar presentations
What is an Operating System?
Advertisements

WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
CMSC 421: Principles of Operating Systems Section 0202 Instructor: Dipanjan Chakraborty Office: ITE 374
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
Chapter 1: Introduction
1/23/2004CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
1: Operating Systems Overview
Introduction  What is an Operating System  What Operating Systems Do  How is it filling our life 1-1 Lecture 1.
Modified from Silberschatz, Galvin and Gagne ©2009 CS 446/646 Principles of Operating Systems Lecture 1 Chapter 1: Introduction.
Operating Systems CS208. What is Operating System? It is a program. It is the first piece of software to run after the system boots. It coordinates the.
Silberschatz, Galvin and Gagne  Operating System Concepts Bare Machine (early 1950s) Structure  Large machines run from console  Single user.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
1/16/2008CSCI 315 Operating Systems Design1 Introduction Notice: The slides for this lecture have been largely based on those accompanying the textbook.
1/18/2008CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
CS212: OPERATING SYSTEM Lecture 1: Introduction 1.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
OPERATING SYSTEMS OVERVIEW. What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware.
1 5/25/2016 操作系统课件 教材: 《操作系统概念(第六版 影印版)》 【原书名】 Operating System Concepts(Sixth Edition) [ 原书信息 ] Operating System Concepts(Sixth Edition) [ 原书信息 ] 【原出版社】
Thanks to Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction n What is an Operating System? n Mainframe Systems.
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
Chapter 1. Introduction What is an Operating System? Mainframe Systems
Operating System Review September 10, 2012Introduction to Computer Security ©2004 Matt Bishop Slide #1-1.
 Introduction to Operating System Introduction to Operating System  Types Of An Operating System Types Of An Operating System  Single User Single User.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 1 Introduction Read:
Operating system Structure and Operation by Dr. Amin Danial Asham.
 H.M.BILAL Operating System Concepts.  What is an Operating System?  Mainframe Systems  Desktop Systems  Multiprocessor Systems  Distributed Systems.
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. The general objectives of this decision explain the concepts and the importance of operating systems and development.
Operating System Concepts Chapter One: Introduction What is an operating system? Simple Batch Systems Multiprogramming Systems Time-Sharing Systems Personal-Computer.
1.1 Operating System Concepts Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered.
Silberschatz, Galvin and Gagne  Operating System Concepts Lectured by Dr. Lican Huang
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
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.
Operating System. Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered.
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
1.1 Sandeep TayalCSE Department MAIT 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming Batched Systems Time-Sharing Systems.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Multiprocessor Systems Distributed.
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered System Real.
Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered System Real.
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Applied Operating System Concepts
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Where are being used the OS?
Lecture 2: Introduction to Operating Systems
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
חוברת שקפים להרצאות של ד"ר יאיר ויסמן מבוססת על אתר האינטרנט:
Operating System Concepts
Chapter 1: Introduction
Language Processors Application Domain – ideas concerning the behavior of a software. Execution Domain – Ideas implemented in Computer System. Semantic.
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment. Phone:
Operating System Concepts
Chapter 1: Introduction
Presentation transcript:

CSS430 Introduction1 Textbook Ch1 These slides were compiled from the OSC textbook slides (Silberschatz, Galvin, and Gagne) and the instructor’s class materials.

CSS430 Introduction2 Course Objectives You will: Study the fundamental concepts of operating systems Practice the logical design using Java But not: Learn how to use/hack Windows and Linux If this is your main objective, you should take UW Computing Training Skill up system programming with C++ Program 1 will deal with several system calls, but if this is your main interest, you should take CSS432, CSS434 or other C++ programming courses.

CSS430 Introduction3 Important Time Lines Program 1:System calls and shell Program 2:Scheduler Midterm:Process Management Program 3:Synchronization Program 4:Paging Final:Memory/File Management Project:Unix-like file system (Check the syllabus for their due dates.)

CSS430 Introduction4 Important Web Pages and Addresses Our class web: Textbook: Java: Instructor ’ s {mfukuda, ksung, rnash, or Class discussion mailing list: css430a_{au, wi, or sp}{05, GoPost is accessible from our class web. Assignment submission: Submit your tar-archived file to CollectIt (accessible from the class web).

CSS430 Introduction5 What is an Operating System Goals Execute user programs and make solving user problems easier Making the computer system convenient to use Using computer hardware in an efficient manner Definitions Resource allocator – manages and allocates resources Control program – controls the execution of user programs and operations of I/O devices Kernel – the one program running at all times (all else being application programs)

CSS430 Introduction6 Computer System Components

CSS430 Introduction7 Operating Systems History Batch systems: Multiprogramming: IBM360 Time-sharing systems: Multics, Unix Personal-computer systems: Windows, Linux Symmetric multiprocessors Dual-core system: Intel Core 2 Duo Cluster systems: Hydra, PVM, MPI, MapReduce

CSS430 Introduction8 Batch Systems A job is assembled of the program, the data, and some control information (in control cards). Programmers pass their jobs to an operator. The operator batched together jobs. OS transfers control from one job to another. Each job output is sent back to the programmer.

CSS430 Introduction9 Multiprogramming Several jobs are kept in main memory at the same time. OS picks one of them to execute. The job may have to wait for a slow I/O operation to complete. OS switches to and executes another job. To facilitate multiprogramming, OS needs: Job scheduling Memory management

CSS430 Introduction10 Time-Sharing Systems This is a logical extension of multiprogramming. Each user has at least one separate program in memory. A program in execution is referred to as a process. Process switch occur so frequently that the users can interact with each program while it is running. File system allows users to access data and program interactively.

CSS430 Introduction11 Personal-Computer Systems Personal computers – computer system dedicated to a single user. User convenience and responsiveness Can adopt technology developed for larger operating systems ’ some features. At its beginning, a single user system didn ’ t not need advanced CPU utilization and protection. Later, file protection is necessary to avoid virus. Overall, the same OS concepts are appropriate for the various different classes of computers.

CSS430 Introduction12 Symmetric Multiprocessing Architecture Multiprocessor systems with more than one CPU in close communication (in one box). Tightly coupled system – processors share memory and a clock; shared- memory-based communication. Advantages of parallel system: Increased throughput Economical Increased reliability

CSS430 Introduction13 A Dual-Core Design An MPU chip has two CPU cores, each: owning its own small L1 cache, sharing a large L2 cache, and accessing the main memory through L2.

CSS430 Introduction14 Cluster Systems Client Takes a client-server model Server Consists of many PC/workstations connected to a high-speed network or a storage-area network (SAN). Puts more focus on high- performance computing (HPC) serves for requests in parallel. 100Mbps LAN Workstation Master node Slave 1 Slave N Slave 2 1Gbps SAN http server1 http server2 http server N

CSS430 Introduction15 Computer Hardware

CSS430 Introduction16 Synchronous I/O During execution, each program needs I/O operations to receive keyboard inputs, open files, and print out results. At the early computer era, a program had to wait for an I/O operation to be completed. (Synchronous I/O) This frequently causes CPU idle. requesting process waiting device driver Interrupt handler Hardware data transfer user kernel time

CSS430 Introduction17 Async I/O and Interrupts Asynchronous I/O returns control to a user program without waiting for the I/O to complete. When the I/O is completed, an interrupt occurs to CPU that temporarily suspends the user program and handles the I/O device. requesting process continuing device driver Interrupt handler Hardware data transfer user kernel time

CSS430 Introduction18 Discussions 1 1. What tasks should OS perform in order to suspend and resume a program? List them. Program suspensionProgram resumption

CSS430 Introduction19 Hardware Protection Purpose: With resource sharing, many programs could be affected by a bug in one program. Incorrect or malicious resource accesses cause a hardware trap to the operating system. Dual-Mode Operation: User mode: no privileged instructions allowed. Kernel mode: Privileged instructions allowed. I/O Protection:all privileged Memory Protection: A region from the base to the limit register allowed to use CPU Protection:CPU allowed to use until the timer gets 0.

CSS430 Introduction20 Dual-Mode Operations Provide hardware support to differentiate between at least two modes of operations. 1.User mode – execution done on behalf of a user. 2.Monitor mode (also supervisor mode, system mode, or Kernel mode) – execution done on behalf of operating system. Switching between two modes Device interrupts, hardware traps, system calls cause a trap to the kernel mode The operating system returns to the user mode after servicing requests.

CSS430 Introduction21 System Calls

CSS430 Introduction22 Discussions 2 Early computers did not have interrupts, timers, and/or privileged instructions. What features was OS unable to facilitate? Features not supported by HWFeatures not facilitated by OS Asynchronous I/O and interrupts Timers Privileged instructions

CSS430 Introduction23 Discussions 3 List three distinct events upon which OS can get back CPU from the current user program