Operating Systems Overview. Chapter 2

Similar documents
Operating System. Operating System Overview. Layers of Computer System. Operating System Objectives. Services Provided by the Operating System

Operating System Overview. Operating System

Operating System Overview. Chapter 2

Operating System. Operating Systems Structure Chapter 2. Services Provided by the OS. Evolution of an Operating System

Operating Systems : Overview

Operating Systems Overview. Chapter 2

Operating System. Operating System Overview. Structure of a Computer System. Structure of a Computer System. Structure of a Computer System

Chapter 2 Operating System Overview

Computer System Overview

Operating System Overview. Chapter 2

Operating Systems: Internals and Design Principles. Chapter 2 Operating System Overview Seventh Edition By William Stallings

The modularity requirement

Operating Systems Overview

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering)

Announcement. Exercise #2 will be out today. Due date is next Monday

Introduction. CS3026 Operating Systems Lecture 01

OS - Introduction Ezio Bartocci Institute for Computer Engineering

Introduction to Operating. Chapter Chapter

2. The system of... generally ran one job at a time. These were called single stream batch processing.

Operating System Architecture. CS3026 Operating Systems Lecture 03

Introduction to Operating Systems. Chapter Chapter

Process Description and Control. Chapter 3

OPERATING SYSTEMS UNIT - 1

For use by students enrolled in #71251 CSE430 Fall 2012 at Arizona State University. Do not use if not enrolled.

Solved MCQs on Operating System Principles. Set-1

Major Requirements of an OS

Process Description and Control

Sistemas Operacionais I. Valeria Menezes Bastos

OS Design Approaches. Roadmap. OS Design Approaches. Tevfik Koşar. Operating System Design and Implementation

Multiprogramming. Evolution of OS. Today. Comp 104: Operating Systems Concepts 28/01/2013. Processes Management Scheduling & Resource Allocation

Motivation. Threads. Multithreaded Server Architecture. Thread of execution. Chapter 4

Introduction to Operating Systems. Chapter Chapter

Operating System Support

Threads, SMP, and Microkernels

What is an Operating System? A Whirlwind Tour of Operating Systems. How did OS evolve? How did OS evolve?

CSC Operating Systems Fall Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. August 27 th, 2009.

Announcements. Computer System Organization. Roadmap. Major OS Components. Processes. Tevfik Ko!ar. CSC Operating Systems Fall 2009

Unit 2 : Computer and Operating System Structure

Preview. The Thread Model Motivation of Threads Benefits of Threads Implementation of Thread

Threads, SMP, and Microkernels. Chapter 4

Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - II OS Structures. University at Buffalo. OS Design and Implementation

OS Design Approaches. Roadmap. System Calls. Tevfik Koşar. Operating System Design and Implementation. CSE 421/521 - Operating Systems Fall 2013

Process Description and Control. Major Requirements of an Operating System

Major Requirements of an Operating System Process Description and Control

Operating Systems Fundamentals. What is an Operating System? Focus. Computer System Components. Chapter 1: Introduction

CSE 4/521 Introduction to Operating Systems. Lecture 29 Windows 7 (History, Design Principles, System Components, Programmer Interface) Summer 2018

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

Processes and Threads. Processes and Threads. Processes (2) Processes (1)

Operating Systems: Internals and Design Principles. Chapter 4 Threads Seventh Edition By William Stallings

3.1 Introduction. Computers perform operations concurrently

Concurrency, Mutual Exclusion and Synchronization C H A P T E R 5

OPERATING SYSTEMS. P. PRAVEEN Asst.Prof, CSE

Process Description and Control. Chapter 3


EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems

Chapter 8. Operating System Support. Yonsei University

IT 540 Operating Systems ECE519 Advanced Operating Systems

Operating System Services

Process Concepts. CSC400 - Operating Systems. 3. Process Concepts. J. Sumey

Processes and Non-Preemptive Scheduling. Otto J. Anshus

Chapter 1: Introduction

Part V. Process Management. Sadeghi, Cubaleska RUB Course Operating System Security Memory Management and Protection

Chapter 2 Operating-System Structures

System Call. Preview. System Call. System Call. System Call 9/7/2018

Following are a few basic questions that cover the essentials of OS:

Dr. D. M. Akbar Hussain DE5 Department of Electronic Systems

Operating Systemss and Multicore Programming (1DT089)

1 PROCESSES PROCESS CONCEPT The Process Process State Process Control Block 5

CHAPTER 3 - PROCESS CONCEPT

(MCQZ-CS604 Operating Systems)

Process Description and Control

Computer-System Architecture (cont.) Symmetrically Constructed Clusters (cont.) Advantages: 1. Greater computational power by running applications

Module 1. Introduction:

HIGH PERFORMANCE COMPUTING: MODELS, METHODS, & MEANS OPERATING SYSTEMS 1

CPSC/ECE 3220 Fall 2017 Exam Give the definition (note: not the roles) for an operating system as stated in the textbook. (2 pts.

OPERATING SYSTEMS. After A.S.Tanenbaum, Modern Operating Systems, 3rd edition. Uses content with permission from Assoc. Prof. Florin Fortis, PhD

Overview of Operating Systems

OPERATING SYSTEM SUPPORT (Part 1)

Chapter 3 Processes. Process Concept. Process Concept. Process Concept (Cont.) Process Concept (Cont.) Process Concept (Cont.)

Agenda Process Concept Process Scheduling Operations on Processes Interprocess Communication 3.2

Operating Systems: Overview and Introduction

Chapter 4 Threads, SMP, and

CSC 539: Operating Systems Structure and Design. Spring 2006

OPERATING SYSTEM : RBMCQ0402. Third RavishBegusarai.

Overview of Operating Systems

Dr. Rafiq Zakaria Campus. Maulana Azad College of Arts, Science & Commerce, Aurangabad. Department of Computer Science. Academic Year

CLASS: II YEAR / IV SEMESTER CSE SUBJECT CODE AND NAME: CS6401 OPERATING SYSTEMS UNIT I OPERATING SYSTEMS OVERVIEW

Threads Chapter 5 1 Chapter 5

LECTURE 3:CPU SCHEDULING

Chapter 1: Introduction

Chendu College of Engineering & Technology

OS structure. Process management. Major OS components. CSE 451: Operating Systems Spring Module 3 Operating System Components and Structure

Principles of Operating Systems CS 446/646

Chapter 1: Introduction

CSC 453 Operating Systems

Chapter 3: Process Concept

Chapter 3: Process Concept

Misc. Third Generation Batch Multiprogramming. Fourth Generation Time Sharing. Last Time Evolution of OSs

Transcription:

Operating Systems Overview Chapter 2

Operating System A program that controls the execution of application programs An interface between the user and hardware Masks the details of the hardware

Layers and Views of a Computer System End User Application Programs Programmer Utilities Operating- System Designer Operating-System Computer Hardware

Services Provided by the Operating System Program execution Access to I/O devices Controlled access to files System access

Services Provided by the Operating System Error detection and response internal and external hardware errors o memory error o device failure software errors o arithmetic overflow o access forbidden memory locations operating system cannot grant request issued by an application

Services Provided by the Operating System Accounting collect statistics monitor performance used to anticipate future enhancements used for billing users

Operating System It is actually a program Directs the processor in the use of system resources Directs the processor when executing other programs Processor stops executing the operating system in order to execute other programs

Operating System as a Resource Manager Computer System Memory Operating System Software Programs and Data I/O Controller I/O Controller... I/O Controller Processor... Processor Stored data includes OS, Programs, Data Storage O/S Programs Data

Evolution of an Operating System Hardware upgrades and new types of hardware New services Fixes

Monitors (an ancient type of OS) Software that controls the running programs Batch operating system Jobs are batched together Resident monitor is in main memory and available for execution Monitor utilities are loaded when needed

Memory Layout For a Resident Monitor Interrupt Processing Device Drivers Job Sequencing Control Language Interpreter Monitor Boundary User Program Area

Job Control Language (JCL) Special type of programming language Provides instruction to the monitor about each job to be admitted into the system what compiler to use what data to use job priority

Hardware Features Memory protection do not allow the memory area containing the monitor to be altered Timer prevents a job from monopolizing the system an interrupt occurs when time expires

Hardware Features Privileged instructions executed only by the monitor an interrupt occurs if a program tries these instructions Interrupts provide flexibility for controlling user programs

Multiprogramming or Multitasking Allows the processor to execute another program while one program must wait for an I/O device. Run Wait Run Wait Time Run A Run B Wait Run A Run B Wait Time

Example JOB1 JOB2 JOB3 Type of job Heavy compute Heavy I/O Heavy I/O Duration 5 min. 15 min. 10 min. Memory required 50K 100 K 80 K Need disk? No No Yes Need terminal No Yes No Need printer? No No Yes

Effects of Multiprogramming Uniprogramming Multiprogramming Processor use 17% 33% Memory use 30% 67% Disk use 33% 67% Printer use 33% 67% Elapsed time 30 min. 15 min. Throughput rate 6 jobs/hr 12 jobs/hr Mean response time 18 min. 10 min.

Time Sharing Using multiprogramming to handle multiple interactive jobs Processor s time is shared among multiple users Multiple users simultaneously access the system through terminals

Process More general term than a job Consists of an executable program, associated data, and execution context (registers, program counter, etc.)

Difficulties with Designing OS Software Improper synchronization ensure a process waiting for an I/O device receives the signal Failed mutual exclusion Non-deterministic program operation program should only depend on its input, not on common memory areas Deadlocks

Memory Management Process isolation Automatic allocation and management Support for modular programming Protection and access control Long-term storage

Virtual Memory Allows programmers to address memory from a logical point of view While program is running portions of the program and data are kept in blocks on disk (transparently to the application).

File System Implements long-term storage Information stored in named objects, called files

Categories of Security and Protection Access control regulate user access to the system Information flow control regulate flow of data within the system and its delivery to users Certification proving that access and flow control perform according to specifications

Scheduling and Resource Management Fairness give equal and fair access to all processes Differential responsiveness discriminate between different classes of jobs Efficiency maximize throughput, minimize response time, and accommodate as many users as possible

Major Elements Of Operating System Service Call from Process Operating System Service Call Handler Interrupt from Process Interrupt from I/O Interrupt Handler Long- Short- Term Term Queue Queue Short-Term Scheduler I/O Queues Pass Control to Process

System Structure View the system as a series of levels Each level performs a related subset of functions Each level relies on the next lower level to perform more primitive functions This decomposes a problem into a number of more manageable subproblems

Operating System Design Hierarchy Level Name Objects Example Operations 13 Shell User programming Statements in shell language environment 12 User processes User processes Quit, kill, suspend, resume 11 Directories Directories Create, destroy, attach, detach, search, list 10 Devices External devices, such Create, destroy, open, close, as printer, displays read, write and keyboards 9 File system Files Create, destroy, open, close read, write 8 Communications Pipes Create, destroy, open. close, read, write

Operating System Design Hierarchy Level Name Objects Example Operations 7 Virtual Memory Segments, pages Read, write, fetch 6 Local secondary Blocks of data, device Read, write, allocate, free store channels 5 Primitive processes Primitive process, Suspend, resume, wait, signal semaphores, ready list

Operating System Design Hierarchy Level Name Objects Example Operations 4 Interrupts Interrupt-handling Invoke, mask, unmask, retry programs 3 Procedures Procedures, call stack Mark stack, call, return 2 Instruction Set Evaluation stack, Load, store, add, subtract, micro-program branch interpreter, scalar and array data 1 Electronic circuits Registers, gates, Clear, transfer, activate, busses, etc. complement

Characteristics of Modern Operating Systems Microkernel architecture assigns only a few essential functions to the kernel o address space o interprocess communication (IPC) o basic scheduling

Characteristics of Modern Operating Systems Multithreading process is divided into threads that can run simultaneously Thread dispatchable unit of work executes sequentially and is interruptible Process (sometimes also called task) is a collection of one or more threads

Characteristics of Modern Operating Systems Symmetric multiprocessing (SMP) there are multiple processors these processors share same main memory and I/O facilities Each processor can perform the same functions (i.e., processors are interchangeable)

Characteristics of Modern Operating Systems Distributed operating systems distinct computers organized into a single whole provides the illusion of a single main memory provides distributed file system that appears to the user as a single file space

Characteristics of Modern Operating Systems Object-oriented design used for adding modular extensions to a small kernel enables programmers to customize an operating system without disrupting system integrity

Windows NT/ /XP/ /10/ Exploits the power of today s microprocessors Provides full multitasking in a single-user environment Can execute on several hardware platforms

Windows NT/ /10/ Modified microkernel architecture many of the system functions outside of the microkernel still run in kernel mode Hardware abstraction layer (HAL) makes the hardware look the same to the kernel, regardless of the platform provides support for symmetric multiprocessing

Windows NT/ /10/ The main parts of the OS are The Executive o Memory management, processes&threads (create, delete,track), I/O (micro) Kernel o Thread scheduling, process switching, interrupts, synchronization Hardware abstraction layer (HAL) Device drivers Window manager and graphics Executive is built using a client-server architecture Eg, memory management, process creation/deletion, scheduling are services that wait for requests

Advantages of Client/Server Simplifies the base operating system, the executive possible to construct a variety of APIs (application programming interface) Improves reliability each server runs as a separate process with its own partition of memory servers cannot directly access hardware Provides basis for distributed computing

Windows Features for SMP Operating system routines can run on any processor Different routines can execute simultaneously on different processors Multiple threads of execution within a single process Servers use multiple threads to process requests for more than one client simultaneously Flexible interprocess communication

Windows Objects Not all entities are objects Entities represented by objects are files, processes, threads, semaphores, times, and windows Object manager in the kernel is responsible for creating and destroying objects, for granting access to object s services and data

UNIX Architecture Linux, Solaris, Mac OS X Hardware is surrounded by the operating-system Operating system is called the kernel Comes with a number of user services and interfaces shell compilers inter-process communication Symmetric multi-processing Some use microkernels (Solaris, Mac OS X); some are modular-monolithic (Linux)

Compiler Compiler Components UNIX Architecture Application Programs Shell Editors, and Private User Programs Kernel Hardware