Page 1 2P13 Week 9. Page 2 Table 9.2 Scheduling Criteria User Oriented, Performance Related Turnaround time This is the interval of time between the submission.

Slides:



Advertisements
Similar presentations
1 Uniprocessor Scheduling Types of scheduling –The aim of processor scheduling is to assign processes to be executed by the processor so as to optimize.
Advertisements

1 Multiprocessor and Real-Time Scheduling Chapter 10.
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,
1 Multiprocessor and Real-Time Scheduling Chapter 10.
1 Multiprocessor and Real-Time Scheduling Chapter 10.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling The key to multiprogramming is scheduling Scheduling is done to meet the goals of –Response time.
Cs238 CPU Scheduling Dr. Alan R. Davis. CPU Scheduling The objective of multiprogramming is to have some process running at all times, to maximize CPU.
Multiprocessor and Real-Time Scheduling Chapter 10.
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (2) Process Management 10/03/2008 Yang Song (Prepared by Yang Song and.
5: CPU-Scheduling1 Jerry Breecher OPERATING SYSTEMS SCHEDULING.
1 Scheduling in Representative Operating Systems.
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.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
1 Chapter 13 Embedded Systems Embedded Systems Characteristics of Embedded Operating Systems.
Chapter 10 Multiprocessor and Real-Time Scheduling
Multiprocessor and Real-Time Scheduling
1Chapter 05, Fall 2008 CPU Scheduling The CPU scheduler (sometimes called the dispatcher or short-term scheduler): Selects a process from the ready queue.
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
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Lecture 5 Operating Systems.
Lecture 5: Uniprocessor Scheduling
OPERATING SYSTEMS CPU SCHEDULING.  Introduction to CPU scheduling Introduction to CPU scheduling  Dispatcher Dispatcher  Terms used in CPU scheduling.
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,
CPU Scheduling Chapter 6 Advanced Operating System.
Fair Resource Access & Allocation  OS Scheduling
Chapter 10 Multiprocessor and Real-Time Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Scheduling Algorithms. A computer system has limited resources that must be shared among the processes competing for those resources. A computer system.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Chapter 10 Multiprocessor and Real-Time Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Multiprocessor and Real-Time Scheduling Chapter 10.
Multiprocessor and Real-Time Scheduling
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
1 Multiprocessor and Real-Time Scheduling Chapter 10 Real-Time scheduling will be covered in SYSC3303.
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)
CPU Scheduling CSCI 444/544 Operating Systems Fall 2008.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling Minimize response time Maximize throughput Maximize processor efficiency.
ICOM Noack Scheduling For Distributed Systems Classification – degree of coupling Classification – granularity Local vs centralized scheduling Methods.
Chapter 5 Processor Scheduling Introduction Processor (CPU) scheduling is the sharing of the processor(s) among the processes in the ready queue.
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
Uniprocessor Scheduling Chapter 9. Processor Scheduling Processor scheduling determines the assignment of processes to be executed by the processor over.
Page 1 2P13 Week 10. Page 2 Page 3 Static table-driven approaches performs a static analysis of feasible schedules of dispatching result is a schedule.
Group no.2 Presented to : Eng.Ahmed Hassan Sunday, March 04,2012.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling Assign processes to be executed by the processor or processors: –Response time –Throughput –Processor.
Real time scheduling G.Anuradha Ref:- Stallings. Real time computing Correctness of the system depends not only on the logical result of computation,
For a good summary, visit:
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,
Page 1 2P13 Week 8. Page 2 Page 3 Page 4 Page 5.
1 Uniprocessor Scheduling Chapter 9. 2 Aim of Scheduling Assign processes to be executed by the processor(s) Response time Throughput Processor efficiency.
CPU Scheduling Scheduling processes (or kernel-level threads) onto the cpu is one of the most important OS functions. The cpu is an expensive resource.
Principles of Operating Systems Lecture 16 Abhishek Dubey Daniel Balasubramanian Real Time Scheduling Fall 2014.
Uniprocessor Scheduling
Uniprocessor Scheduling
Uniprocessor Scheduling
Chapter 2.2 : Process Scheduling
Operating Systems CPU Scheduling.
OverView of Scheduling
TDC 311 Process Scheduling.
Chapter 9 Uniprocessor Scheduling
CPU SCHEDULING.
Multiprocessor and Real-Time Scheduling
Uniprocessor scheduling
CS703 - Advanced Operating Systems
Uniprocessor Scheduling
Presentation transcript:

Page 1 2P13 Week 9

Page 2 Table 9.2 Scheduling Criteria User Oriented, Performance Related Turnaround time This is the interval of time between the submission of a process and its completion. Includes actual execution time plus time spent waiting for resources, including the processor. This is an appropriate measure for a batch job. Response time For an interactive process, this is the time from the submission of a request until the response begins to be received. Often a process can begin producing some output to the user while continuing to process the request. Thus, this is a better measure than turnaround time from the user's point of view. The scheduling discipline should attempt to achieve low response time and to maximize the number of interactive users receiving acceptable response time. Deadlines When process completion deadlines can be specified, the scheduling discipline should subordinate other goals to that of maximizing the percentage of deadlines met. User Oriented, Other Predictability A given job should run in about the same amount of time and at about the same cost regardless of the load on the system. A wide variation in response time or turnaround time is distracting to users. It may signal a wide swing in system workloads or the need for system tuning to cure instabilities. System Oriented, Performance Related Throughput The scheduling policy should attempt to maximize the number of processes completed per unit of time. This is a measure of how much work is being performed. This clearly depends on the average length of a process but is also influenced by the scheduling policy, which may affect utilization. Processor utilization This is the percentage of time that the processor is busy. For an expensive shared system, this is a significant criterion. In single-user systems and in some other systems, such as real-time systems, this criterion is less important than some of the others. System Oriented, Other Fairness In the absence of guidance from the user or other system-supplied guidance, processes should be treated the same, and no process should suffer starvation. Enforcing priorities When processes are assigned priorities, the scheduling policy should favor higher-priority processes. Balancing resources The scheduling policy should keep the resources of the system busy. Processes that will underutilize stressed resources should be favored. This criterion also involves medium-term and long-term scheduling.

Page 3

Page 4 Table 9.4 Process Scheduling Example ProcessArrival TimeService Time A03 B26 C44 D65 E82

Page 5

Page 6

Page 7

Page 8

Page 9

Page 10 Table 10.1 Synchronization Granularity and Processes Grain SizeDescriptionSynchronization Interval (Instructions) FineParallelism inherent in a single instruction stream. <20 MediumParallel processing or multitasking within a single application CoarseMultiprocessing of concurrent processes in a multiprogramming environment Very CoarseDistributed processing across network nodes to form a single computing environment M IndependentMultiple unrelated processesnot applicable

Page 11

Page 12 Features of Real-Time OS Fast process or thread switch Small size Ability to respond to external interrupts quickly MultiTasking with inter-process communication tools, semaphores, signals, and events. Use of special sequential files that can accumulate data at a fast rate Pre-emptive scheduling based on priority Minimize duration interval when interrupts are disabled Primitives to delay tasks for a fixed amount of time and to pause/resume tasks Special alarms and timeouts.

Page 13

Page 14 Static table-driven approaches performs a static analysis of feasible schedules of dispatching result is a schedule that determines, at run time, when a task must begin execution Static priority-driven preemptive approaches a static analysis is performed but no schedule is drawn up analysis is used to assign priorities to tasks so that a traditional priority-driven preemptive scheduler can be used Dynamic planning-based approaches feasibility is determined at run time rather than offline prior to the start of execution one result of the analysis is a schedule or plan that is used to decide when to dispatch this task Dynamic best effort approaches no feasibility analysis is performed system tries to meet all deadlines and aborts any started process whose deadline is missed

Page 15 Real-time operating systems are designed with the objective of starting real-time tasks as rapidly as possible and emphasize rapid interrupt handling and task dispatching Real-time applications are generally not concerned with sheer speed but rather with completing (or starting) tasks at the most valuable times Priorities provide a crude tool and do not capture the requirement of completion (or initiation) at the most valuable time

Page 16 resources required by the task while it is executing Resource requirements measures relative importance of the task Priority a task may be decomposed into a mandatory subtask and an optional subtask Subtask scheduler time task becomes ready for execution Ready time time task must begin Starting deadline time task must be completed Completion deadline time required to execute the task to completion Processing time

Page 17 Table 10.2 Execution Profile of Two Periodic Tasks ProcessArrival TimeExecution TimeEnding Deadline A(1)01020 A(2) A(3) A(4) A(5) B(1)02550 B(2)

Page 18 Figure 10.5 Scheduling of Periodic Real-Time Tasks With Completion Deadlines (Based on Table 10.2)

Page 19 Figure 10.6 Scheduling of Aperiodic Real-Time Tasks With Starting Deadlines

Page 20 Table 10.3 Execution Profile of Five Aperiodic Tasks ProcessArrival TimeExecution TimeStarting Deadline A B20 C D 2090 E602070

Page 21 Figure 10.7 Rate Monotonic Schedulin g

Page 22 Periodic Task Timing Diagram Figure 10.8

Page 23 The End