Coordinating the Machine’s Activities

Slides:



Advertisements
Similar presentations
PROCESS MANAGEMENT Y. Colette LeMard.
Advertisements

?  Able to explain the 6 key functions of system software  Able to explain each using a suitable example  Identify three different system software.
Operating System.
Operating system Part four Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
1. 2 The Evolution of Operating Systems : §The single processing machines of 1940’s and 1950’s were not very flexible or efficient. §The processing is.
Lecture 1: History of Operating System
Concurrent Processes Lecture 5. Introduction Modern operating systems can handle more than one process at a time System scheduler manages processes and.
Operating Systems: Software in the Background
Operating system Part three Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
The Operating System and the User Interface
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Introduction to Operating Systems
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Operating Systems  By the end of this session, you will know: What an Operating System is. The functions it performs.
Operating Systems.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Eleventh Edition.
 Introduction to Operating System Introduction to Operating System  Types Of An Operating System Types Of An Operating System  Single User Single User.
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
SWE202 Review. Processes Process State As a process executes, it changes state – new: The process is being created – running: Instructions are being.
1 Sec (3.2) Operating System Architecture OS. 2 Software dividing into two categories: 1. Application software 2. System Software  Operating System 
Chapter 3 Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 3: Operating Systems
Operating System Principles And Multitasking
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.
Deadlock Operating Systems: Internals and Design Principles.
Virtual Memory Various memory management techniques have been discussed. All these strategies have the same goal: to keep many processes in memory simultaneously.
Chapter 3 Operating Systems. © 2005 Pearson Addison-Wesley. All rights reserved 3-2 Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 6: Deadlocks.
Lecturer 5: Process Scheduling Process Scheduling  Criteria & Objectives Types of Scheduling  Long term  Medium term  Short term CPU Scheduling Algorithms.
Operating Systems Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
Operating Systems c. define and explain the purpose of scheduling, job queues, priorities and how they are used to manage job throughput; d. explain how.
CT101: Computing Systems Introduction to Operating Systems.
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Multiprogramming. Readings r Chapter 2.1 of the textbook.
Introduction to Operating Systems
Operating System Overview
Applied Operating System Concepts
Chapter 3: Operating Systems
An Introduction to Operating Systems
Introduction to Operating System (OS)
IS310 Hardware & Network Infrastructure Ronny L
TYPES OFF OPERATING SYSTEM
Chapter 7: Deadlocks.
OPERATING SYSTEMS.
Shell & Kernel Concepts in Operating System
Operating System Architecture OS
Chapter 1: Intro (excerpt)
USER CENTRIC VIEW AND SYSTEM CENTRIC VIEW OF SYSTEM SOFTWARE
Processor Fundamentals
Chapter 3 Operating Systems
Chapter 3: Operating Systems
Ainsley Smith Tel: Ex
Chapter 3: Operating Systems
CS149D Elements of Computer Science
Introduction to Operating Systems
The Main Features of Operating Systems
- When you approach operating system concepts there might be several confusing terms that may look similar but in fact refer to different concepts:  multiprogramming, multiprocessing, multitasking,
Chapter 3: Operating Systems
Chapter 3: Operating Systems Computer Science: An Overview
Chapter 3: Operating Systems
Chapter 3: Operating Systems
Operating System Overview
Parallel execution Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Necessary Background for OS
Presentation transcript:

Coordinating the Machine’s Activities

Coordinating the Machine’s Activities Process Administration In a time-sharing/multitasking system this task is accomplished by multiprogramming; that is, diving time into short segments, each called a time slice (typically measured in milliseconds or microseconds), and then switching the CPU’s attention among the processes as each is allowed to execute for one time slice (Figure 3.6). The procedure of changing from one process to another is called process switch (or a context switch).

Coordinating the Machine’s Activities Paramount to the success of a multiprogramming system is the ability to stop, and later restart, a process. If you are interrupted while reading a book, your ability to continue reading at a later time depends on your ability to remember your location in the book as well as the information that you had accumulated to that point. In short, you must be able to re-create the environment that was present immediately prior to the interruption.

Figure 3.6 Time-sharing between process A and process B

Coordinating the Machine’s Activities An important task of an operating system is the allocation of the machine’s resources to the processes in the system. Here we are using the term resource in a broad sense, including the machine’s peripheral devices as well as features within the machine itself. The file manager allocates access to files as well and allocates mass storage space for the construction of new files; the memory manager allocates memory space.

Coordinating the Machine’s Activities As with many problems in computer systems, this allocation task may appear simple at first glance. However, lie several subtleties that can lead to malfunctions in a poorly designed system. Remember, a machine does not think for itself; it merely follows directions. Let us consider a time-sharing/multitasking operating system controlling the activities of a computer with a single printer. If a process needs to print its results, it must request that the operating system give it access to

Coordinating the Machine’s Activities the printer’s - driver. At this point, the operating system must decide whether to grant this request, depending on whether the printer is already being used by another process. If it is not, the OS should grant the request and allow the process to continue; otherwise, the OS should deny the request and perhaps classify the process as a waiting process until the printer becomes available. After all, if two processes were given simultaneous access to the computer’s printer, the results would be worthless to both.

Figure 3.7 A deadlock resulting from competition for nonshareable railroad intersections

Coordinating the Machine’s Activities Summary time-sharing resource allocation