OverView of Scheduling

Slides:



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

Chapter 9 Uniprocessor Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College, Venice,
Chapter 9 Uniprocessor Scheduling
Chapter 9 Uniprocessor Scheduling
Chapter 9 Uniprocessor Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Dave Bremer Otago Polytechnic, N.Z. ©2008,
Chapter 9 Uniprocessor Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Dave Bremer Otago Polytechnic, N.Z. ©2008,
Uniprocessor Scheduling Chapter 9. Aim of Scheduling The key to multiprogramming is scheduling Scheduling is done to meet the goals of –Response time.
1 Uniprocessor Scheduling Chapter 9. 2 Aims of Scheduling Assign processes to be executed by the processor(s) Response time Throughput Processor efficiency.
Informationsteknologi Tuesday, October 9, 2007Computer Systems/Operating Systems - Class 141 Today’s class Scheduling.
1 Lecture 10: Uniprocessor Scheduling. 2 CPU Scheduling n The problem: scheduling the usage of a single processor among all the existing processes in.
1 Uniprocessor Scheduling Chapter 9. 2 Aim of Scheduling Main Job: Assign processes to be executed by the processor(s) and processes to be loaded in main.
Uniprocessor Scheduling
CPU Scheduling Chapter 6 Chapter 6.
Chapter 9 Uniprocessor Scheduling Spring, 2011 School of Computer Science & Engineering Chung-Ang University.
Chapter 9 Uniprocessor Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College, Venice,
Chapter 9 Uniprocessor Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College, Venice,
Chapter 9 Uniprocessor Scheduling Seventh Edition By William Stallings Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling To improve: Response time: time it takes a system to react to a given input Turnaround Time (TAT)
Uniprocessor Scheduling Chapter 9. Aim of Scheduling Minimize response time Maximize throughput Maximize processor efficiency.
1 Uniprocessor Scheduling Chapter 9. 2 Aim of Scheduling Response time Throughput Processor efficiency.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling Response time Throughput Processor efficiency.
Uniprocessor Scheduling
Operating System 9 UNIPROCESSOR SCHEDULING. TYPES OF PROCESSOR SCHEDULING.
Uniprocessor Scheduling Chapter 9. Processor Scheduling Processor scheduling determines the assignment of processes to be executed by the processor over.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling Assign processes to be executed by the processor or processors: –Response time –Throughput –Processor.
1 Uniprocessor Scheduling Chapter 3. 2 Alternating Sequence of CPU And I/O Bursts.
Chapter 9 Uniprocessor Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Dave Bremer Otago Polytechnic, N.Z. ©2008,
1 Uniprocessor Scheduling Chapter 9. 2 Aim of Scheduling Assign processes to be executed by the processor(s) Response time Throughput Processor efficiency.
Uniprocessor Scheduling Chapter 9 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College, Venice,
Uniprocessor Scheduling
Uniprocessor Scheduling
CPU Scheduling Chapter 5.
CPU scheduling 6. Schedulers, CPU Scheduling 6.1. Schedulers
Uniprocessor Scheduling
Chapter 2.2 : Process Scheduling
Process Scheduling B.Ramamurthy 9/16/2018.
Chapter 6: CPU Scheduling
Operating Systems CPU Scheduling.
CS 143A - Principles of Operating Systems
Process Scheduling B.Ramamurthy 11/18/2018.
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Uniprocessor Scheduling
Operating System Chapter 9. Uniprocessor Scheduling
Process Scheduling B.Ramamurthy 12/5/2018.
Chapter5: CPU Scheduling
TDC 311 Process Scheduling.
Chapter 5: CPU Scheduling
Chapter 9 Uniprocessor Scheduling
Chapter 6: CPU Scheduling
CPU SCHEDULING.
Operating System 9 UNIPROCESSOR SCHEDULING
Chapter 5: CPU Scheduling
Process Scheduling B.Ramamurthy 2/23/2019.
Process Scheduling B.Ramamurthy 2/23/2019.
Process Scheduling B.Ramamurthy 2/23/2019.
Process Scheduling B.Ramamurthy 2/23/2019.
Processor Scheduling Hank Levy 1.
Process Scheduling B.Ramamurthy 4/11/2019.
Process Scheduling B.Ramamurthy 4/7/2019.
Uniprocessor scheduling
Process Scheduling B.Ramamurthy 4/19/2019.
Process Scheduling B.Ramamurthy 4/24/2019.
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Process Scheduling B.Ramamurthy 5/7/2019.
Chapter 6: CPU Scheduling
Uniprocessor Scheduling
Uniprocessor Scheduling
Module 5: CPU Scheduling
Presentation transcript:

OverView of Scheduling Student: Xiuxian Chen ID:93036 Instructor:Mort Anvari Term: Fall 2000

Basic Concepts Scheduling is a fundamental operating-system function. Almost all computer resources are scheduling before use. The CPU is one the primary computer resources. Thus, its scheduling is central to operating-system design.

Types of Scheduling Long-term Scheduling Determines which programs are admitted to the system for processing Controls the degree of multiprogramming If more processes are admitted less likely that all processes will be blocked better CPU usage each process has less fraction of the CPU The long term scheduler may attempt to keep a mix of processor-bound and I/O-bound processes

Types of Scheduling (Continue) Medium-term Scheduling Medium-term scheduling is part of the swapping function. Typically, the swapping-in decision is based on the need to manage the degree of multiprogramming.

Types of Scheduling (Continue) Short-term Scheduling Determines which process is going to execute next (also called CPU scheduling) The short term scheduler is known as the dispatcher Is invoked when an event occurs Clock interrupts I/O interrupts Operating system calls and traps Signals

Types of Scheduling (Continue) I/O Scheduling Decision as to which process’s pending I/O request shall be handled by available I/O device

Scheduling and Process State Transition

Scheduling Criteria CPU utilization Throughput Turnaround time Waiting Time Response time

Scheduling algorithms First-Come-First-Served (FCFS) Each process joins the Ready queue When the current process ceases to execute, the oldest process in the Ready queue is selected A short process may have to wait a very long time before it can execute Favors CPU-bound processes I/O processes have to wait until CPU-bound process completes

Scheduling algorithms (continue) Round-Robin Uses preemption based on a clock An amount of time is determined that allows each process to use the processor for that length of time

Scheduling algorithms (continue) Priorities of Scheduling Scheduler will always choose a process of higher priority over one of lower priority Have multiple ready queues to represent each level of priority Lower-priority may suffer starvation allow a process to change its priority based on its age or execution history

Scheduling algorithms (continue) Shortest Process Next Non preemptive policy Process with shortest expected processing time is selected next Short process jumps ahead of longer processes Predictability of longer processes is reduced If estimated time for process not correct, the operating system may abort it Possibility of starvation for longer processes

Scheduling algorithms (continue) Feedback Scheduling Process is demoted to the next lower-priority queue each time it returns to the ready queue Longer processes drift downward To avoid starvation, preemption time for lower-priority processes is longer

Scheduling algorithms (continue) Multiprocessor Thread Scheduling Load sharing processes are not assigned to a particular processor Gang scheduling a set of related threads is scheduled to run on a set of processors at the same time Determined processor assignment threads are assigned to a specific processor Dynamic Scheduling number of threads can be altered during course of execution

Scheduling algorithms (continue) Real-Time Scheduling Static table-driven determines at run time when a task begins execution Static priority-driven preemptive traditional priority-driven scheduler is used Dynamic planning-based Dynamic best effort

References Operating systems: internals and Design Principles, third Edition by William Stallings http://www.cs.panam.edu/~meng/Course/CS4334/Note/master/node17.html http://www.iranma.org/os/