Process Management with OS

Slides:



Advertisements
Similar presentations
Chapter 9 Uniprocessor Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College, Venice,
Advertisements

Topic : Process Management Lecture By: Rupinder Kaur Lecturer IT, SRS Govt. Polytechnic College for Girls,Ludhiana.
CS 149: Operating Systems February 3 Class Meeting
Scheduling Algorithms
Day 25 Uniprocessor scheduling. Algorithm: Selection function Selection function – which process among ready processes to select. w – time spent in system,
WELCOME TO THETOPPERSWAY.COM
Chapter 3: CPU Scheduling
CPU-Scheduling Whenever the CPU becomes idle, the operating system must select one of the processes in the ready queue to be executed. The short term scheduler.
Chapter 6: CPU Scheduling
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
Chapter 4 Processor Management
CPU S CHEDULING A LGORITHMS Lecture 6 1 L.Mohammad R. Alkafagee.
Chapter 9 Uniprocessor Scheduling Spring, 2011 School of Computer Science & Engineering Chung-Ang University.
Chapter 6 CPU SCHEDULING.
More Scheduling cs550 Operating Systems David Monismith.
Scheduling Chap 2. Scheduling Introduction to Scheduling (1) Bursts of CPU usage alternate with periods of I/O wait –a CPU-bound process –an I/O bound.
1 Scheduling The part of the OS that makes the choice of which process to run next is called the scheduler and the algorithm it uses is called the scheduling.
Lecture 7: Scheduling preemptive/non-preemptive scheduler CPU bursts
1 Uniprocessor Scheduling Chapter 9. 2 Aim of Scheduling Response time Throughput Processor efficiency.
Uniprocessor Scheduling
ITFN 2601 Introduction to Operating Systems Lecture 4 Scheduling.
CSC 322 Operating Systems Concepts Lecture - 10: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Processor Scheduling Hank Levy. 22/4/2016 Goals for Multiprogramming In a multiprogramming system, we try to increase utilization and thruput by overlapping.
Lecture Topics: 11/15 CPU scheduling: –Scheduling goals and algorithms.
CPU Scheduling Operating Systems CS 550. Last Time Deadlock Detection and Recovery Methods to handle deadlock – Ignore it! – Detect and Recover – Avoidance.
Operating Systems Scheduling. Scheduling Short term scheduler (CPU Scheduler) –Whenever the CPU becomes idle, a process must be selected for execution.
Chapter 9 Uniprocessor Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Dave Bremer Otago Polytechnic, N.Z. ©2008,
Lecturer 5: Process Scheduling Process Scheduling  Criteria & Objectives Types of Scheduling  Long term  Medium term  Short term CPU Scheduling Algorithms.
Scheduling.
INTRO TO PROCESS SCHEDULING Module 2.4 COP4600 – Operating Systems Richard Newman.
CPU SCHEDULING.
Copyright ©: Nahrstedt, Angrave, Abdelzaher
Chapter 5a: CPU Scheduling
Uniprocessor Scheduling
Networks and Operating Systems: Exercise Session 2
April 6, 2001 Gary Kimura Lecture #6 April 6, 2001
Uniprocessor Scheduling
Understanding Operating Systems Seventh Edition
Chapter 2 Scheduling.
CPU Scheduling.
Operating Systems Processes Scheduling.
Uniprocessor Scheduling
Chapter 2.2 : Process Scheduling
Day 25 Uniprocessor scheduling
CPU scheduling 6. Schedulers, CPU Scheduling 6.1. Schedulers
CPU Scheduling.
Chapter 6: CPU Scheduling
Operating Systems CPU Scheduling.
CPU Scheduling G.Anuradha
Chapter 6: CPU Scheduling
Chapter 5: CPU Scheduling
OverView of Scheduling
Operating System Concepts
So far…. Firmware identifies hardware devices present
TDC 311 Process Scheduling.
Chapter 9 Uniprocessor Scheduling
Chapter 5: CPU Scheduling
Chapter 5: CPU Scheduling
Process Management Scheduling
Processor Scheduling Hank Levy 1.
Scheduling.
Uniprocessor scheduling
CPU SCHEDULING CPU SCHEDULING.
Chapter 6: Scheduling Algorithms Dr. Amjad Ali
Scheduling 21 May 2019.
Uniprocessor Scheduling
Uniprocessor Scheduling
CPU Scheduling.
CPU Scheduling: Basic Concepts
Chapter 5: CPU Scheduling
Presentation transcript:

Process Management with OS Prepared By: Fatma Said Al-Hosni

Outline Introduction Process statues Process Control Block (PCB) When to schedule Process scheduling algorithms: First come, first served Shortest job first Priority scheduling Shortest remaining time Round robin

Introduction When a computer is a multi-programmed, it frequently has multiple processes competing for the CPU at the same time. The part of the operating system that makes the choice is called the scheduler The algorithm it uses is called the scheduling algorithm

Process statues As a job moves through the system it’s always in one of five statues (or at least three) as it changes from HOLD to READY to RUNING to WAITING and eventually to FINISHED

Process statues

Process Control Block (PCB) Each process in the system is represented by data structure called Process Control Block (PCB). PCB contains information about the job including: What it is? Where it is going? How much of its processing has been completed? Where it is stored? How much it has spent in using resources?

When to schedule First, when a new process is created, a decision needs to be made whether to run the parent or the child process Second, a scheduling decision must be made when a process exists Third, when a process blocks on I/O, on a semaphore, or for some other reason, another process has to be selected to run. Fourth, when an I/O interrupts occurs, a scheduling decision may be made

Scheduling algorithms can be divided into two categories with respect to how they deal with clock interrupts. Nonpreemptive  scheduling algorithm picks a process to run and then just lets it run until it blocks (either on I/O or waiting for another process) or until it voluntarily releases the CPU. Preemptive  scheduling algorithm picks a process and lets it run for a maximum of some fixed time

Process scheduling algorithms First come, first served Shortest job first Priority scheduling Shortest remaining time Round robin

First come, first served (FCFS) With this algorithm, processes are assigned the CPU in the order they request. Advantages: Easy to understand Fair Disadvantages: This scheduling method is nonpreemptive, that is, the process will run until it finishes. Because of this nonpreemptive scheduling, short processes which are at the back of the queue have to wait for the long process at the front to finish

Shortest job first (SJF) Shortest job first is a nonpreemptive algorithm that handles jobs based on the length of their CPU cycle time.

Priority scheduling This algorithm gives preferential treatment to important jobs. If two or more jobs with equal priority are present in the ready queue, the processor is allocated to the one that arrived first

Cont.. Priority scheduling Priorities can be determined by the Processer Manager based on characteristics intrinsic to the jobs such as: Memory requirements Number and type of peripheral devices Total CPU time Amount of time already spent in the system

Shortest remaining time (SRT) With this algorithm, the scheduler always choose the process whose remaining is the shortest. The run time has to be known in advance.

Round robin Round robin is one of the oldest, simplest, fairest, and most widely used algorithms. Each process is assigned a time interval, called its quantum.

References Andrew S. Tanenbaum (2001). Modern Operating Systems. 2nd ed. Ann Mchoer, Ida m. (2006). Understanding Operating Systems. 5th ed. M. Garrido, R.Schlesiner (2008). Understanding Modern Operating Brain L.Stuart (2009). Principles of Operating Systems.