OUTLINE What is the Process Management? What is it covers? pprocess state pprocess table, pprocess scheduling.

Slides:



Advertisements
Similar presentations
Topic : Process Management Lecture By: Rupinder Kaur Lecturer IT, SRS Govt. Polytechnic College for Girls,Ludhiana.
Advertisements

Silberschatz, Galvin and Gagne ©2013 Operating System Concepts Essentials – 2 nd Edition Chapter 6a: CPU Scheduling.
 Basic Concepts  Scheduling Criteria  Scheduling Algorithms.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 5: CPU Scheduling.
Operating Systems Chapter 6
Chap 5 Process Scheduling. Basic Concepts Maximum CPU utilization obtained with multiprogramming CPU–I/O Burst Cycle – Process execution consists of a.
Chapter 5 CPU Scheduling. CPU Scheduling Topics: Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Operating Systems CPU Scheduling. Agenda for Today What is Scheduler and its types Short-term scheduler Dispatcher Reasons for invoking scheduler Optimization.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Processes and Their Scheduling.
WELCOME TO THETOPPERSWAY.COM
Chapter 3: CPU Scheduling
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 5: CPU Scheduling.
CS 311 – Lecture 23 Outline Kernel – Process subsystem Process scheduling Scheduling algorithms User mode and kernel mode Lecture 231CS Operating.
Scheduling in Batch Systems
Chapter 6: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Feb 2, 2005 Chapter 6: CPU Scheduling Basic.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
What we will cover…  CPU Scheduling  Basic Concepts  Scheduling Criteria  Scheduling Algorithms  Evaluations 1-1 Lecture 4.
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (2) Process Management 10/03/2008 Yang Song (Prepared by Yang Song and.
Chapter 5-CPU Scheduling
A. Frank - P. Weisberg Operating Systems CPU Scheduling.
7/12/2015Page 1 Process Scheduling B.Ramamurthy. 7/12/2015Page 2 Introduction An important aspect of multiprogramming is scheduling. The resources that.
02/11/2004CSCI 315 Operating Systems Design1 CPU Scheduling Algorithms Notice: The slides for this lecture have been largely based on those accompanying.
Modified from Silberschatz, Galvin and Gagne ©2009 Lecture 8 Chapter 5: CPU Scheduling.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Feb 2, 2005 Basic Concepts Maximum CPU utilization.
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.
CS212: OPERATING SYSTEM Lecture 3: Process Scheduling 1.
Chapter 6 CPU SCHEDULING.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Scheduling. Alternating Sequence of CPU And I/O Bursts.
Silberschatz and Galvin  Operating System Concepts Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor.
Alternating Sequence of CPU And I/O Bursts. Histogram of CPU-burst Times.
CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Thread Scheduling Multiple-Processor Scheduling Operating Systems Examples Algorithm.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 5: CPU Scheduling.
CPU Scheduling Basic Concepts. Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Thread Scheduling Multiple-Processor.
3.1 : Resource Management Part2 :Processor Management.
Chapter 5 CPU Scheduling Bernard Chen Spring 2007.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Lecture 7: CPU Scheduling Chapter 5.
Lecture 7: Scheduling preemptive/non-preemptive scheduler CPU bursts
Chapter 5 Processor Scheduling Introduction Processor (CPU) scheduling is the sharing of the processor(s) among the processes in the ready queue.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria.
Chapter 5: Process Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Basic Concepts Maximum CPU utilization can be obtained.
1 11/29/2015 Chapter 6: CPU Scheduling l Basic Concepts l Scheduling Criteria l Scheduling Algorithms l Multiple-Processor Scheduling l Real-Time Scheduling.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Feb 2, 2005 Chapter 5: CPU Scheduling Basic.
Silberschatz and Galvin  Operating System Concepts Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 5 CPU Scheduling Slide 1 Chapter 5 CPU Scheduling.
6.1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Purpose of Operating System Part 2 Monil Adhikari.
1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Introduction to Operating System Created by : Zahid Javed CPU Scheduling Fifth Lecture.
1 Uniprocessor Scheduling Chapter 3. 2 Alternating Sequence of CPU And I/O Bursts.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Lecture 4 CPU scheduling. Basic Concepts Single Process  one process at a time Maximum CPU utilization obtained with multiprogramming CPU idle :waiting.
CPU Scheduling G.Anuradha Reference : Galvin. CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time.
CPU scheduling.  Single Process  one process at a time  Maximum CPU utilization obtained with multiprogramming  CPU idle :waiting time is wasted 2.
1 Module 5: Scheduling CPU Scheduling Scheduling Algorithms Reading: Chapter
Basic Concepts Maximum CPU utilization obtained with multiprogramming
1 Lecture 5: CPU Scheduling Operating System Fall 2006.
Lecturer 5: Process Scheduling Process Scheduling  Criteria & Objectives Types of Scheduling  Long term  Medium term  Short term CPU Scheduling Algorithms.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria.
1 Chapter 5: CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Process management Information maintained by OS for process management
Chapter 6: CPU Scheduling
Chapter 5: CPU Scheduling
Chapter5: CPU Scheduling
Chapter 5: CPU Scheduling
Chapter 6: Scheduling Algorithms Dr. Amjad Ali
CPU Scheduling: Basic Concepts
Presentation transcript:

OUTLINE What is the Process Management? What is it covers? pprocess state pprocess table, pprocess scheduling

Process State Process Table(process control block) pp rocess state mm emory state rr esource state Process Scheduling

What is Multiprogramming Process Conclusion ; Process Management

What is Process Management? Ever action run inside a process. In computer science, a process is an application in execution.

Operating system's way of dealing with running multiple processes. Computing and distributing "timeshares".

Process State When a process is using the CPU, it is actually running and doing some work. If a process does I/O,the device is not ready or just slow

The process states and transitions are;

Process table The suspended process to be restarted at a later time as if it had never been stopped The O/S maintains information about each process in a process table

Process table Process control blocks must contain information about  process state  memory state  resource state

Process State The process state must contain all the information the value of each register the program counter the stack pointer

The process is in runnning, runnning, runnable, runnable, blocked blocked

Memory state Details of the memory allocation such as pointers to the various memory areas used by the program

Resource state Information regarding the status of files being used by the process such as user ID

MULTI- PROGRAMMING

Process Scheduling Processes are put into a job queue They are kept in a list called ready queue The ready queue is generally stored as a link list Process waiting for a particular device are placed in a I/O queue

17 Process Queues cpu ready queue I/O queuei/oI/O request time slice expires fork a child resource request resource queue wait queue child executes join

Multiprogramming ProcessSCHEDULERS: Two types of scheduler: – Long-term schedulers (Job scheduler) – Short-term scheduler (CPU scheduler)

Multiprogramming Process The short-term scheduler: selects from among the processes that are ready to execute and allocates the CPU to one of them selects from among the processes that are ready to execute and allocates the CPU to one of them must select a new process for the CPU frequently must be very fast.

Multiprogramming Process The long-term scheduler : selects processes from a batch system and loads them into memory for execution executes less frequently

21 SCHEDULERS Blocked Newly arriving jobs Ready Queue Running Long-term Scheduler Short-term Scheduler

22 Medium-term Scheduling Medium-term Scheduling Partially-executed swapped-out processes CPUReady Queue I/O I/O waiting queues end

23 The CPU Scheduler The CPU Scheduler CPU scheduling decisions take place when a process: (i)switches from running to waiting state (ii)switches from running to ready state (iii)switches from waiting to ready (iv)terminates.

24 Scheduling Criteria CPU utilization Throughput Turnaround time Waiting time Response time Fairness

25 Scheduling Policies Preemptive Scheduling: A process switched back and forth between running and ready state More efficient, better capabilities More complex and needs hardware support

26 Scheduling Policies Non-Preemptive Scheduling: Once a process begins execution, it occupies CPU until it finishes or it blocks Simplicity Creates problems

27 SCHEDULING ALGORITHMS First-Come-First-Served or FIFO Scheduling Shortest-Job-first Scheduling Priority Scheduling Round-Robin Scheduling

28 FCFS Scheduling First process will be served by CPU Non-preemptive Waiting time is quite long EEEE xxxx aaaa mmmm pppp llll eeee

29 FCFS Scheduling ProcessCPU Burst Time (ms) P124 P23 P33 P1P2P Waiting time for P1 = 0; P2 = 24; P3 = 27 Ave. waiting time: ( ) /3 = 17 ms.

30 FCFS Scheduling FCFS Scheduling P1P2 P Waiting time for P1 = 6; P2 = 0; P3 = 3 Ave. waiting time : ( )/3 = 3 Much better than the previous case, where we had a Convoy Effect: short process behind long process. Results in lower CPU utilization

31 Shortest-Job-First Scheduling Selects the shortest job first Enqueue jobs in order of estimated completion time It is non-preemptive

32 Priority Scheduling Assign a priority to each job and schedule jobs in order of priority Typically low priority values = “High Priority” Increasing priority means decrease its priority value It can be both preemptive or non-preemptive Equal priority processes are scheduled in FCFS order

33 Round-Robin Scheduling Designed for time-sharing systems Preemptive Each process gets a small unit of CPU time usually milliseconds After that time the process preempted and added to the end of the ready queue

RESOURCES dictionary.thefreedictionary.com/process+table dictionary.thefreedictionary.com/process+table m m nt=131 nt=131 ing.html ing.html