Process Scheduling in Windows XP, Linux, and UNIX By Sarah G. Levinson CSC 4320.

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

OS, , Part II CPU Scheduling Department of Computer Engineering, PSUWannarat Suntiamorntut.
Operating Systems Process Scheduling (Ch 3.2, )
CS4315A. Berrached:CMS:UHD1 CPU Scheduling Chapter 7.
CPU Scheduling CPU Scheduler Performance metrics for CPU scheduling
A. Frank - P. Weisberg Operating Systems Advanced CPU Scheduling.
Ceng Operating Systems Chapter 2.2 : Process Scheduling Process concept  Process scheduling Interprocess communication Deadlocks Threads.
CPU Scheduling Section 2.5.
Operating System Process Scheduling (Ch 4.2, )
Operating System I Process Scheduling. Schedulers F Short-Term –“Which process gets the CPU?” –Fast, since once per 100 ms F Long-Term (batch) –“Which.
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
OS Spring ’ 04 Scheduling Operating Systems Spring 2004.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling The key to multiprogramming is scheduling Scheduling is done to meet the goals of –Response time.
Introduction to Operating Systems – Windows process and thread management In this lecture we will cover Threads and processes in Windows Thread priority.
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.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
Job scheduling Queue discipline.
Operating Systems Process Scheduling (Ch 4.2, )
1 Lecture 10: Uniprocessor Scheduling. 2 CPU Scheduling n The problem: scheduling the usage of a single processor among all the existing processes in.
Operating System Process Scheduling (Ch 4.2, )
1 Scheduling Algorithms FCFS First-Come, First-Served Round-robin SJF Multilevel Feedback Queues.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
CPU Scheduling Chapter 6 Chapter 6.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Lecture 5 Operating Systems.
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,
Fair Resource Access & Allocation  OS Scheduling
Operating System Examples - Scheduling
Chapter 6 Scheduling. Basic concepts Goal is maximum utilization –what does this mean? –cpu pegged at 100% ?? Most programs are I/O bound Thus some other.
Scheduling Strategies Operating Systems Spring 2004 Class #10.
Scheduling. Alternating Sequence of CPU And I/O Bursts.
CPU Scheduling Thomas Plagemann (with slides from Otto J. Anshus, Kai Li, Pål Halvorsen and Andrew S. Tanenbaum)
Review Questions on Chapter III—Scheduling COSC 4330/6310 Summer 2013.
1 Our focus  scheduling a single CPU among all the processes in the system  Key Criteria: Maximize CPU utilization Maximize throughput Minimize waiting.
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
Traditional UNIX Scheduling Scheduling algorithm objectives Provide good response time for interactive users Ensure that low-priority background jobs do.
Cpr E 308 Spring 2005 Process Scheduling Basic Question: Which process goes next? Personal Computers –Few processes, interactive, low response time Batch.
ITFN 2601 Introduction to Operating Systems Lecture 4 Scheduling.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling Assign processes to be executed by the processor or processors: –Response time –Throughput –Processor.
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.
Operating System Examples - Scheduling. References r er/ch10.html r bangalore.org/blug/meetings/200401/scheduler-
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,
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.
UNIT–II: Process Management
Chapter 5a: CPU Scheduling
Uniprocessor Scheduling
Chapter 2.2 : Process Scheduling
Chapter 5: CPU Scheduling
CPU Scheduling Basic Concepts Scheduling Criteria
Chapter 6: CPU Scheduling
Operating System Concepts
TDC 311 Process Scheduling.
Chapter 9 Uniprocessor Scheduling
CPU SCHEDULING.
Outline Scheduling algorithms Multi-processor scheduling
Process Scheduling Decide which process should run and for how long
Processor Scheduling Hank Levy 1.
Shortest-Job-First (SJR) Scheduling
Scheduling 21 May 2019.
Uniprocessor Scheduling
Presentation transcript:

Process Scheduling in Windows XP, Linux, and UNIX By Sarah G. Levinson CSC 4320

Common Measures of Operating System Performance CPU Utilization Throughput Turnaround Time Response Time Wait Time

Other Important Factors “User-Perceived Performance”: This measure is concerned with how efficient the system seems to a human user. This deals less with overall efficiency and more with the time it takes for the user to see observable results of a response. Fairness: Processes that are similar are given similar access to system resources. The property of fairness is exemplified by the Round Robin scheduling algorithm.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Traditional UNIX – Overall Efficiency, Fairness and User-Perceived Performance Multi-level feedback queue implementation is used, so processes with higher priority have first access to CPU time. Priority of a process is based on the type of process, where the swapper has highest priority and user processes have lowest priority.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Traditional UNIX – Overall Efficiency, Fairness and User-Perceived Performance Round Robin algorithm is implemented within individual priority queues, and a process’s priority is decreased as it uses more CPU time. User programs that are processor-bound are penalized more than user programs that are I/O- bound.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Modern UNIX – Real-Time Processing and Overall Efficiency Processes can be assigned one of three priority levels: Real Time, Kernel, or Time Shared. Real Time processes have the highest priority and may pre-empt processes at any other level, including kernel processes.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Modern UNIX – Real-Time Processing and Overall Efficiency If multiple real-time processes are waiting to run, the highest-priority process is selected to run until it has exhausted its time quantum. If a higher-level process has not completed but is not currently in a running status, a process is selected from the highest-priority ready queue that is not empty.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Modern UNIX – Real-Time Processing and Overall Efficiency The priorities of time shared processes are dynamically set by the OS. A process’s priority is lowered when it uses up a time quantum and raised it if blocks on an event or resource.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Linux—Real-Time Processing and Fairness Linux uses two process scheduling algorithms: a real-time algorithm for processes that must be allowed to execute in a timely fashion, and a timesharing algorithm for all other processes. The Round Robin and FIFO scheduling algorithms are used to switch between real-time processes.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Linux—Real-Time Processing and Fairness Timesharing algorithm is prioritized and “credit- based”. Credit-Based: When a new process must be selected, the process with the most credits is selected. A process that is running loses a credit every time the timer interrupt occurs. When a process has no more credits, it may not run.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Linux—Real-Time Processing and Fairness Timesharing algorithm is prioritized and “credit- based”. Prioritized: When no processes have any remaining credits, the system re-assigns credits. Higher priority processes receive more credits.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Linux—Real-Time Processing and Fairness Timesharing algorithm is prioritized and “credit- based”. This crediting system automatically prioritizes interactive and I/O-bound processes, which increases fairness and user-perceived performance.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Windows XP – Real Time Processing and User- Perceived Performance Real time processes have the highest priority and can pre-empt any process with lower priority. System processes may be starved by real time processes because a process’s priority is never decreased.

The process scheduling algorithms used by an operating system reflect its primary performance objectives. Windows XP – Real Time Processing and User- Perceived Performance All processes receive a priority boost after a wait event, but processes that have experienced a keyboard I/O wait get a larger boost than those that have experienced a disk I/O wait. “Foreground” processes given higher priority.

Questions?