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.

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 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.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
1 CIS450/IMSE450/ECE478 Operating Systems Winter 2003 Professor Jinhua Guo.
OPERATING SYSTEM OVERVIEW
OS Spring’03 Introduction Operating Systems Spring 2003.
Modified from Silberschatz, Galvin and Gagne ©2009 CS 446/646 Principles of Operating Systems Lecture 1 Chapter 1: Introduction.
OS Spring’04 Introduction Operating Systems Spring 2004.
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.
1 5/25/2016 操作系统课件 教材: 《操作系统概念(第六版 影印版)》 【原书名】 Operating System Concepts(Sixth Edition) [ 原书信息 ] Operating System Concepts(Sixth Edition) [ 原书信息 ] 【原出版社】
Introduction to Basic OS Concepts. Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems.
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
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:
 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.
1: Operating Systems Overview 1 Jerry Breecher Fall, 2004 CLARK UNIVERSITY CS215 OPERATING SYSTEMS OVERVIEW.
CIS250 OPERATING SYSTEMS Chapter One Introduction.
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.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
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.
Operating Systems 1 K. Salah Module 1.0: Introduction What is an operating system? Multiprogramming Systems Time-Sharing Systems Parallel Systems Distributed.
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.
Applied Operating System Concepts
Chapter 1: Introduction
Chapter 1: Introduction
Introduction to Basic OS Concepts
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
חוברת שקפים להרצאות של ד"ר יאיר ויסמן מבוססת על אתר האינטרנט:
Operating System Concepts
Chapter 1: Introduction
Introduction to Operating Systems
Language Processors Application Domain – ideas concerning the behavior of a software. Execution Domain – Ideas implemented in Computer System. Semantic.
Introduction to Operating Systems
Subject Name: Operating System Concepts Subject Number:
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Operating System Concepts
Chapter 1: Introduction
Presentation transcript:

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 execution of all other software. It provides various common services needed by users and applications.

Operating System Definition Short definition: –a program that manages a computer’s resources and acts as an intermediary between a user and those resources hardware operating system computer application user

Operating System (OS) Functions For the User: Provides a user interface to let the user access hardware and software resources. For the System: Manages all the system tasks and resources to provide security, and fair, efficient use.

Operating System Goals Execute user programs and make solving user problems easier. Make the computer system convenient to use. Use the computer hardware in an efficient manner.

Parts of an Operating System User Interface –Menu –Command Language –Graphical User Interface (GUI) System Security –Login control Process Management –CPU Scheduler

Parts of an Operating System Memory Management –Swapper/Pager Temporarily unused pages are stored on disk (swapped out) When they are needed again, they are brought back into the memory (swapped in) –Garbage Collection Resource Management –File Management –Device Management

Operating System Terminology Kernel –Software component that controls the hardware directly, and implements the core privileged OS functions. Process –An executing program.

Time Sharing Allows multiple processes to run on the same computer, seemingly at the same time. CPU is multiplexed among several processes that are kept in memory (the CPU is allocated to a process only if the process is in memory). –A process is swapped in and out of memory to the disk as needed. OS must manage process scheduling and provide memory protection to keep one program from crashing the system or corrupting other programs.

CPU Time Slicing for Time Sharing Only ONE process can be running on the CPU at a time. –Each process is allocated a “slice” of time in the CPU. –When the time runs out, the process is interrupted, and another process is loaded into the CPU. The act of giving each process a small slice of time to run is called time slicing.

CPU Time Slicing Allocate CPU to Process 1 CPU Process 1 Process 3 Main Memory Process 2 Current Process Allocate CPU to Process 2 Allocate CPU to Process 3 Repeat until all processes have completed.

CPU execution modes CPUs supports (at least) 2 execution modes: –User mode The code of the user programs –Kernel (supervisor, privileged, monitor, system) mode The code of OS The execution mode is indicated by a bit in the processor status word (PSW) (a register in the CPU)

Protecting Kernel mode OS code executes in the Kernel mode –Called via interrupts and system calls Only the OS code is allowed to be executed in the Kernel mode The user code must never be executed in the Kernel mode –The program counter (PC) is only set to point to the OS code when the CPU goes to the Kernel mode

Interrupts An interrupt is the way by which the hardware informs the OS of special conditions that require OS attention Interrupts cause the CPU not to execute the next instruction Instead, the control is passed to OS

System Calls A System Call is used by a process to request a service from the OS Typical system calls –Open/read/write/close the file –Get the current time –Create a new process –Request more memory

A typical scenario 1.OS executes and chooses (schedules) an process to run 2.Process runs CPU executes process’ instructions OS is not involved 3.The system clock interrupts the CPU Clock interrupt handler is executed The handler is an OS function

A typical scenario (continued) 4.In the interrupt handler: Process’ time has expired. The OS chooses another process to run 5.Process runs CPU executes process’ instructions OS is not involved 5.The process performs a system call to read from a file.

A typical scenario (continued) 7.The system call causes a trap into the OS  OS sets up the I/O  OS schedules another application to run 8.The third application runs…. NOTE: At any given time only ONE program can be running: Either the OS or a user process

Parallel Systems Multi-processor systems with more than one CPU in close communication. Tightly coupled system – processors share memory and a clock; communication usually takes place through the shared memory. Advantages of parallel system: –Economical –Increased throughput –Increased reliability

Parallel Systems Symmetric multiprocessing (SMP) –Each processor runs an identical copy of the operating system. –Many processes can run at once without performance deterioration. –Most modern operating systems support SMP Asymmetric multiprocessing –Each processor is assigned a specific task; master processor schedules and allocates work to slave processors. –More common in extremely large systems

Distributed Systems Distribute the computation among several physical computers. –Each has its own CPU, local memory, stable storage, I/O paths connecting to the environment Interconnections –Loosely coupled system – each processor has its own local memory; processors communicate with one another through various communications lines, such as high-speed buses or telephone lines. –Systems cooperate to maintain shared state and coordinate global information

Distributed Systems Advantages of distributed systems. –Inherent distribution –Speedup - improved performance due to load sharing –Fault tolerance/Reliability –Resource Sharing –Scalability –Flexibility

Distributed Systems Network Operating System –provides file sharing –provides communication scheme –runs independently from other computers on the network Distributed Operating System –less autonomy between computers –gives the impression there is a single operating system controlling the network.