Operating Systems OBJECTIVES 7.1 DEFINITION. Chapter 7. Note:

Similar documents
How To Understand The History Of An Operating System

INTRODUCTION TO COMPUTING CPIT 201 WEEK 13 LECTURE 3

Chapter 3. Operating Systems

OPERATING SYSTEM SERVICES

Chapter 11 I/O Management and Disk Scheduling

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Multiprogramming. IT 3123 Hardware and Software Concepts. Program Dispatching. Multiprogramming. Program Dispatching. Program Dispatching

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

Undergraduate Course Syllabus

CHAPTER 15: Operating Systems: An Overview

Chapter 1: Introduction. What is an Operating System?

Operating System Structures

OPERATING SYSTEMS Internais and Design Principles

3 - Introduction to Operating Systems

Operating Systems, 6 th ed. Test Bank Chapter 7

Chapter 2: OS Overview

Computers: Tools for an Information Age

W4118 Operating Systems. Instructor: Junfeng Yang

Components of a Computer System

CS420: Operating Systems OS Services & System Calls

Page 1 of 5. IS 335: Information Technology in Business Lecture Outline Operating Systems

Functions of NOS Overview of NOS Characteristics Differences Between PC and a NOS Multiuser, Multitasking, and Multiprocessor Systems NOS Server

Chapter 2 System Structures

Operating Systems 4 th Class

Network operating systems typically are used to run computers that act as servers. They provide the capabilities required for network operation.

Operating Systems Concepts: Chapter 7: Scheduling Strategies

OPERATING SYSTEMS SCHEDULING

Chapter 6, The Operating System Machine Level

Road Map. Scheduling. Types of Scheduling. Scheduling. CPU Scheduling. Job Scheduling. Dickinson College Computer Science 354 Spring 2010.

Operating Systems. Design and Implementation. Andrew S. Tanenbaum Melanie Rieback Arno Bakker. Vrije Universiteit Amsterdam

Outline. Operating Systems Design and Implementation. Chap 1 - Overview. What is an OS? 28/10/2014. Introduction

Introduction. What is an Operating System?

Scheduling. Yücel Saygın. These slides are based on your text book and on the slides prepared by Andrew S. Tanenbaum

Far-western University Central Office, Mahendranagar Operating System

CS3600 SYSTEMS AND NETWORKS

Operating System Tutorial

Final Report. Cluster Scheduling. Submitted by: Priti Lohani

Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.

OPERATING SYSTEMS STRUCTURES

Operating Systems. III. Scheduling.

Operating Systems. Notice that, before you can run programs that you write in JavaScript, you need to jump through a few hoops first

Technical Properties. Mobile Operating Systems. Overview Concepts of Mobile. Functions Processes. Lecture 11. Memory Management.

CPU Scheduling. Basic Concepts. Basic Concepts (2) Basic Concepts Scheduling Criteria Scheduling Algorithms Batch systems Interactive systems

Operating Systems: Basic Concepts and History

I/O Management. General Computer Architecture. Goals for I/O. Levels of I/O. Naming. I/O Management. COMP755 Advanced Operating Systems 1

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

EECS 678: Introduction to Operating Systems

CPU Scheduling. CPU Scheduling

LSKA 2010 Survey Report Job Scheduler

Overview and History of Operating Systems

How To Understand And Understand An Operating System In C Programming

Obj: Sec 1.0, to describe the relationship between hardware and software HW: Read p.2 9. Do Now: Name 3 parts of the computer.

CPU SCHEDULING (CONT D) NESTED SCHEDULING FUNCTIONS

OS OBJECTIVE QUESTIONS

UNIT 1 OPERATING SYSTEM : AN OVERVIEW

Outline: Operating Systems

Objectives. Chapter 5: CPU Scheduling. CPU Scheduler. Non-preemptive and preemptive. Dispatcher. Alternating Sequence of CPU And I/O Bursts

Operating Systems Introduction

Software systems and issues

Principles of Operating Systems CS 446/646

Operating System Components and Services

Operating System Software

CS 453/552: Operating Systems

Components of a Computing System. What is an Operating System? Resources. Abstract Resources. Goals of an OS. System Software

Running Windows on a Mac. Why?

Chapter 3 Operating-System Structures

Local Area Networks: Software and Support Systems

2) What is the structure of an organization? Explain how IT support at different organizational levels.

Multiprocessor Scheduling and Scheduling in Linux Kernel 2.6

Operating Systems Virtualization mechanisms

ELEC 377. Operating Systems. Week 1 Class 3

Overview of Operating Systems Instructor: Dr. Tongping Liu

Scheduling 0 : Levels. High level scheduling: Medium level scheduling: Low level scheduling

Operating Systems. and Windows

Comp 204: Computer Systems and Their Implementation. Lecture 12: Scheduling Algorithms cont d

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

4.1 Introduction 4.2 Explain the purpose of an operating system Describe characteristics of modern operating systems Control Hardware Access

PROCESS SCHEDULING ALGORITHMS: A REVIEW

Gildart Haase School of Computer Sciences and Engineering

CSE 120 Principles of Operating Systems. Modules, Interfaces, Structure

Objectives. Chapter 5: Process Scheduling. Chapter 5: Process Scheduling. 5.1 Basic Concepts. To introduce CPU scheduling

Programming for GCSE Topic H: Operating Systems

Networking Operating Systems (CO32010)

Introduction to Operating Systems. Perspective of the Computer. System Software. Indiana University Chen Yu

ICS Principles of Operating Systems

OPERATING SYSTEMS Software in the Background. Chapter 2

Chapter 5: System Software: Operating Systems and Utility Programs

Chapter 4. Operating Systems and File Management

Contents. Chapter 1. Introduction

CPU Scheduling Outline

Chapter 4. System Software. What You Will Learn... Computers Are Your Future. System Software. What You Will Learn... Starting the Computer

ESM s management across multi-platforms eliminates the need for various account managers.

Origins of Operating Systems OS/360. Martin Grund HPI

Process Scheduling CS 241. February 24, Copyright University of Illinois CS 241 Staff

Ubuntu Linux Reza Ghaffaripour May 2008

Star System Deitel & Associates, Inc. All rights reserved.

Chapter 3: Operating Systems

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

OS Concepts and structure

Timing of a Disk I/O Transfer

Transcription:

Chapter 7 OBJECTIVES Operating Systems Define the purpose and functions of an operating system. Understand the components of an operating system. Understand the concept of virtual memory. Understand the concept of deadlock and starvation. List some of the characteristics of popular operating systems such as Windows XP, Windows 2000, UNIX, Linux, MacOS. Reading Figure 7-1 Computer System Chapter 7 (skip material related to deadlock and starvation on pages 132-135) Note: 7.1 DEFINITION An operating system is an interface between the hardware of a computer and the user (program or human) that facilitates the execution of the other programs and the access to hardware and software resources. 1

Evolution 7.2 EVOLUTION Batch Systems (OS is simple) Time-Sharing Systems (multiprogramming, time-sharing) Personal Systems (single-user operating systems) Parallel Systems (multiple CPUs on the same machine) Distributed Systems (remote sharing of resources) Figure 7-2 Components of an operating system 7.3 COMPONENTS Figure 7-3 Monoprogramming Multiprogramming More than one program is in memory at the same time They are executed concurrently The CPU switches between the programs 2

Figure 7-4 Multiprogramming Multiprogramming Swapping means that during execution the program can be swapped between memory and disk one or more times Figure 7-5 Categories of multiprogramming Figure 7-6 Partitioning Figure 7-7 Paging Figure 7-8 Virtual memory 3

Process Management Figure 7-9 State diagram with the boundaries between a program, a job, and a process Program is a non active set of instructions written by a programmer and stored on disk Job is a program that becomes a job from the moment it is selected for execution until it has finished running and becomes a program again Process is a program in execution (a job that is residing in memory) Process Management Figure 7-10 Job scheduler Process manager uses two schedulers: The job scheduler The process scheduler Figure 7-11 Process scheduler Queuing To handle multiple processes and jobs, the process manager uses queues (waiting lists) An operating system can have several queues The process manager can have different policies for selecting the next job or process from a queue: FIFO, shortest length first, highest priority 4

Figure 7-12 Queues for process management Synchronization The main idea of a process management is to synchronize different processes with different resources You can have two possible situations whenever resources are used by more than one user: deadlock and starvation Figure 7-13 Deadlock Figure 7-14 Deadlock on a bridge Note: Figure 7-16 Dining philosophers Deadlock occurs when the operating system does not put resource restrictions on processes. 5

Device Manager File Manager Monitors every input/output device to assure that the device is functioning properly Maintains a queue for each input/output device Controls different policies for accessing I/O devices Controls access to files Supervises the creation, deletion and modification of files Can control the naming of files Supervises the storage of files Responsible for archiving and backups User Interface User interface is a program that accepts requests from users and interprets them for the rest of the operating system UI in UNIX is called a shell UI in Windows is comprised of GUI (graphical user interface) 7.4 POPULAR OPERATING SYSTEMS Windows XP Windows 2000 Windows 95/98/NT UNIX Linux MacOS Popular Operating Systems Summary An operating system facilitates the execution of other software, acts as the general manager of a computer system and ensures the efficient use of hardware and software resources The evolution of OS has included batch operating systems, time-sharing, single-user, parallel and distributed systems The OS has the memory manager, the process manager, device manager and the user interface In monoprogramming, most of memory capacity is dedicated to one single program In multiprogramming, more than one program is in memory at the same time 6

Summary In partitioning, memory is divided into variable length sections In paging, memory is divided into equally sized sections called frames and the program is divided into equally sized section called pages The sum of the sizes of all the programs in memory is virtual memory A program is a nonactive set of instruction written by a programmer and stored on disk A job is a program that is selected for execution A process is a job residing in memory Summary A state diagram shows the relationship between a program, job and process The job scheduler creates a process from a job and changes a process back to a job The process scheduler moves a process from one state to another Jobs and processes wait in queues The device manager controls access to I/O devices The file manager controls access to files The user interface is software that accepts requests from processes and interprets them for the rest of OS Popular OS: Windows XP, Unix, Linux, MacOS 7