Review Questions on Chapter III—Scheduling COSC 4330/6310 Summer 2013.

Slides:



Advertisements
Similar presentations
Scheduling Criteria CPU utilization – keep the CPU as busy as possible (from 0% to 100%) Throughput – # of processes that complete their execution per.
Advertisements

SOLUTIONS FOR THE SECOND 4330 QUIZ Jehan-Francois Paris Summer 2014.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts Essentials – 2 nd Edition Chapter 6a: CPU Scheduling.
Ceng Operating Systems Chapter 2.2 : Process Scheduling Process concept  Process scheduling Interprocess communication Deadlocks Threads.
Day 25 Uniprocessor scheduling. Algorithm: Selection function Selection function – which process among ready processes to select. w – time spent in system,
Chapter 3: CPU Scheduling
Chapter 3 Operating Systems. Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems 3.1 The Evolution of Operating Systems 3.2 Operating System.
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling The key to multiprogramming is scheduling Scheduling is done to meet the goals of –Response time.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
1 Lecture 10: Uniprocessor Scheduling. 2 CPU Scheduling n The problem: scheduling the usage of a single processor among all the existing processes in.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts, Amherst Operating Systems CMPSCI 377 Lecture.
1 Scheduling Algorithms FCFS First-Come, First-Served Round-robin SJF Multilevel Feedback Queues.
1Chapter 05, Fall 2008 CPU Scheduling The CPU scheduler (sometimes called the dispatcher or short-term scheduler): Selects a process from the ready queue.
Process Scheduling in Windows XP, Linux, and UNIX By Sarah G. Levinson CSC 4320.
 Scheduling  Linux Scheduling  Linux Scheduling Policy  Classification Of Processes In Linux  Linux Scheduling Classes  Process States In Linux.
Chapter III Scheduling Jehan-François Pâris
CPU Scheduling Chapter 6 Chapter 6.
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.
CS3530 OPERATING SYSTEMS Summer 2014 Processor Scheduling Chapter 5.
Chapter 4 Processor Management
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.
Round Robin Scheduling A preemptive scheduling designed for Time Sharing Systems The Ready Queue is treated as a circular queue A small execution.
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. Alternating Sequence of CPU And I/O Bursts.
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.
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.
1 Our focus  scheduling a single CPU among all the processes in the system  Key Criteria: Maximize CPU utilization Maximize throughput Minimize waiting.
Practice four Chapter six. 1. A CPU-scheduling algorithm determines an order for the execution of its scheduled processes. Given n processes to be scheduled.
Lecture 7: Scheduling preemptive/non-preemptive scheduler CPU bursts
Operating Systems Scheduling. Bursts of CPU usage alternate with periods of waiting for I/O. (a) A CPU-bound process. (b) An I/O-bound process. Scheduling.
1 Uniprocessor Scheduling Chapter 9. 2 Aim of Scheduling Response time Throughput Processor efficiency.
Uniprocessor Scheduling
More review questions for the second midterm COSC 4330/6310.
Chapter 5: Process Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Basic Concepts Maximum CPU utilization can be obtained.
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.
CSC 322 Operating Systems Concepts Lecture - 10: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Lecture Topics: 11/15 CPU scheduling: –Scheduling goals and algorithms.
1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Operating Systems Scheduling. Scheduling Short term scheduler (CPU Scheduler) –Whenever the CPU becomes idle, a process must be selected for execution.
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.
Chapter III Scheduling Jehan-François Pâris
Lecturer 5: Process Scheduling Process Scheduling  Criteria & Objectives Types of Scheduling  Long term  Medium term  Short term CPU Scheduling Algorithms.
Scheduling.
Solutions to the second midterm COSC 4330/6310 Summer 2013.
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.
CPU SCHEDULING.
Uniprocessor Scheduling
Uniprocessor Scheduling
Chapter 2 Scheduling.
Uniprocessor Scheduling
Questions (True = A, False = B)
Chapter 2.2 : Process Scheduling
Lecture 23: Process Scheduling for Interactive Systems
CPU Scheduling G.Anuradha
Chapter 6: CPU Scheduling
Chapter 5: CPU Scheduling
Operating System Concepts
Chapter5: CPU Scheduling
Chapter 9 Uniprocessor Scheduling
Problems discussed in the review session for the second midterm
Processor Scheduling Hank Levy 1.
Scheduling 21 May 2019.
Uniprocessor Scheduling
Presentation transcript:

Review Questions on Chapter III—Scheduling COSC 4330/6310 Summer 2013

First Question  In the Round Robin policy, what the advantages and disadvantages of selecting a small time quantum? (2×5 points)

First Question  In the Round Robin policy, what the advantages and disadvantages of selecting a small time quantum? (2×5 points) The main advantage of small time slices is a faster response time for interactive requests The main advantage of small time slices is a faster response time for interactive requests

First Question  In the Round Robin policy, what the advantages and disadvantages of selecting a small time quantum? (2×5 points) The main advantage of small time slices is a faster response time for interactive requests The main advantage of small time slices is a faster response time for interactive requests Their main disadvantage is too much CPU time taken by context switches Their main disadvantage is too much CPU time taken by context switches

Second Question  Consider the following set of parameters for a System V Release 4 scheduler with four priority levels: #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL 800 X # X # # # # # Y # Y # 3  Which are the sole reasonable values for X and Y? X=__ and Y= __X=__ and Y= __

Second Question  Consider the following set of parameters for a System V Release 4 scheduler with four priority levels: #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL 800 X # X # # # # # Y # Y # 3  Which are the sole reasonable values for X and Y? X=_0_ and Y= __X=_0_ and Y= __

Second Question  Consider the following set of parameters for a System V Release 4 scheduler with four priority levels: #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL 800 X # X # # # # # Y # Y # 3  Which are the sole reasonable values for X and Y? X=_0_ and Y= _3_X=_0_ and Y= _3_

Third Question  Consider the following System V Release 4 scheduler: #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL # # # # # # # # 3  and identify the four incorrect parameters: (4×5 points)

Third Question  Consider the following System V Release 4 scheduler: #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL # # # # # # # # 3  and identify the four incorrect parameters: (4×5 points)

Third Question  Consider the following System V Release 4 scheduler: #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL # # # # # # # # 3  and identify the four incorrect parameters: (4×5 points)

Third Question  Consider the following System V Release 4 scheduler: #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL # # # # # # # # 3  and identify the four incorrect parameters: (4×5 points)

Third Question  Consider the following System V Release 4 scheduler: #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL # # # # # # # # 3  and identify the four incorrect parameters: (4×5 points)

Fourth Question  Consider the following System V Release 4 scheduler: (3×5 points) #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL # # # # # # # # 3 Which events can increase the priority of a process at level 2? Which events can increase the priority of a process at level 2? Which events can lower it? Which events can lower it?

Fourth Question  Consider the following System V Release 4 scheduler: (3×5 points) #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL # # # # # # # # 3 A return from the wait state or a long wait in the ready queue will increase the priority of a process A return from the wait state or a long wait in the ready queue will increase the priority of a process

Fourth Question  Consider the following System V Release 4 scheduler: (3×5 points) #ts_quantum ts_tqexp ts_slpret ts_maxwait ts_lwait LVL # # # # # # # # 3 A return from the wait state or a long wait in the ready queue will increase the priority of a process A return from the wait state or a long wait in the ready queue will increase the priority of a process A CPU timer interrupt will decrease it A CPU timer interrupt will decrease it

Short Questions  What is the major limitation of the round- robin scheduling policy?

Short Questions  What is the major limitation of the round- robin scheduling policy? RR cannot provide at the same time a good interactive response time and a good throughput at medium to heavy load RR cannot provide at the same time a good interactive response time and a good throughput at medium to heavy load

Short Questions  What is the main advantage of preemptive schedulers over non- preemptive ones?

Short Questions  What is the main advantage of preemptive schedulers over non- preemptive ones? Scheduler can take CPU way from processes "monopolizing" the CPU Scheduler can take CPU way from processes "monopolizing" the CPU Other processes do not have to wait as longOther processes do not have to wait as long

Short Questions  What do schedulers typically do to increase the priorities of I/O-bound processes?

Short Questions  What do schedulers typically do to increase the priorities of I/O-bound processes? They increase the priorities of processes returning to the ready queue from the wait state They increase the priorities of processes returning to the ready queue from the wait state Very likely to have performed an I/OVery likely to have performed an I/O

Short Questions  What do schedulers typically do to lower the priorities of CPU-bound processes?

Short Questions  What do schedulers typically do to lower the priorities of CPU-bound processes? They decrease the priority of processes who have been preempted because they have exhausted their CPU time slice They decrease the priority of processes who have been preempted because they have exhausted their CPU time slice

True or False  The Round-Robin scheduling algorithm does not differentiate between CPU- bound and I/O-bound processes.

True or False  The Round-Robin scheduling algorithm does not differentiate between CPU- bound and I/O-bound processes. TRUE because all processes have the same priority TRUE because all processes have the same priority

True or False  The Round-Robin scheduling algorithm is starvation-free.

True or False  The Round-Robin scheduling algorithm is starvation-free. TRUE because all processes have the same priority TRUE because all processes have the same priority

True or False  Most schedulers adjust the priorities of real-time processes in order to give each process its fair share of the CPU.

True or False  Most schedulers adjust the priorities of real-time processes in order to give each process its fair share of the CPU. FALSE, the schedulers we have discussed assign fixed priorities to real-time processes FALSE, the schedulers we have discussed assign fixed priorities to real-time processes

True or False  Steps taken to decrease the response time of a system can sometimes decrease its throughput.

True or False  Steps taken to decrease the response time of a system can sometimes decrease its throughput. TRUE, think of the round-robin policy TRUE, think of the round-robin policy

True or False  All preemptive policies have multiple priority levels.

True or False  All preemptive policies have multiple priority levels. TRUE, think of the round-robin policy TRUE, think of the round-robin policy

True or False  The throughput of a computer using a round-robin scheduling policy often goes down when the number of users goes up.

True or False  The throughput of a computer using a round-robin scheduling policy often goes down when the number of users goes up.. TRUE because the context switch overhead is likely to increase TRUE because the context switch overhead is likely to increase