TF: Christine Bassem cbassem@cs.bu.edu CS 350 Discussion 2 TF: Christine Bassem cbassem@cs.bu.edu.

Slides:



Advertisements
Similar presentations
 Basic Concepts  Scheduling Criteria  Scheduling Algorithms.
Advertisements

CPU Scheduling CS 3100 CPU Scheduling1. Objectives To introduce CPU scheduling, which is the basis for multiprogrammed operating systems To describe various.
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.
02/18/2008CSCI 315 Operating Systems Design1 Deadlock Notice: The slides for this lecture have been largely based on those accompanying the textbook Operating.
Chapter 5-CPU Scheduling
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
Chapter 6: CPU Scheduling
CS212: OPERATING SYSTEM Lecture 3: Process Scheduling 1.
Chapter 6 CPU SCHEDULING.
 Birth Death Processes  M/M/1 Queue  M/M/m Queue  M/M/m/B Queue with Finite Buffers  Results for other Queueing systems 2.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Manijeh Keshtgary. Queuing Network: model in which jobs departing from one queue arrive at another queue (or possibly the same queue)  Open and Closed.
CPU Scheduling Basic Concepts. Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Thread Scheduling Multiple-Processor.
Providing Differentiated Levels of Service in Web Content Hosting Jussara Almeida, etc... First Workshop on Internet Server Performance, 1998 Computer.
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.
1 Presented by Sarbagya Buddhacharya. 2 Increasing bandwidth demand in telecommunication networks is satisfied by WDM networks. Dimensioning of WDM networks.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 5: Process Scheduling.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 5 CPU Scheduling Slide 1 Chapter 5 CPU Scheduling.
Optimizing server placement in distributed systems in the presence of competition Jan-Jan Wu( 吳真貞 ), Shu-Fan Shih ( 施書帆 ), Pangfeng Liu ( 劉邦鋒 ), Yi-Min.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 6 Deadlocks Slide 1 Chapter 6 Deadlocks.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Basic Concepts Maximum CPU utilization obtained with multiprogramming
1 Lecture 5: CPU Scheduling Operating System Fall 2006.
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.
CPU Scheduling CSSE 332 Operating Systems Rose-Hulman Institute of Technology.
lecture 5: CPU Scheduling
CPU Scheduling CSSE 332 Operating Systems
Chapter 6: CPU Scheduling
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Chapter 5a: CPU Scheduling
CPU scheduling 6. Schedulers, CPU Scheduling 6.1. Schedulers
Lecture 13 review Explain how distance vector algorithm works.
Chapter 6: CPU Scheduling
Chapter 6: CPU Scheduling
Normal Distribution Many things closely follow a Normal Distribution:
Chapter 5: CPU Scheduling
Chapter 7 Deadlocks.
CPU Scheduling Basic Concepts Scheduling Criteria
CPU Scheduling G.Anuradha
Chapter 6: CPU Scheduling
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Chapter 5: CPU Scheduling
Operating System Concepts
3: CPU Scheduling Basic Concepts Scheduling Criteria
Chapter5: CPU Scheduling
Chapter 6: CPU Scheduling
Chapter 5: CPU Scheduling
Process Scheduling Decide which process should run and for how long
Chapter 5: CPU Scheduling
Lecture 2 Part 3 CPU Scheduling
COMP/ELEC 429/556 Fall 2017 Homework #2
Process Scheduling B.Ramamurthy 4/11/2019.
Process Scheduling B.Ramamurthy 4/7/2019.
Operating System , Fall 2000 EA101 W 9:00-10:00 F 9:00-11:00
Chapter 6: CPU Scheduling
CS 704 Advanced Computer Architecture
Module 5: CPU Scheduling
Process Scheduling B.Ramamurthy 5/7/2019.
Chapter 6: CPU Scheduling
CPU Scheduling.
Legacy centralized architecture
CPU Scheduling: Basic Concepts
Module 5: CPU Scheduling
Chapter 5: CPU Scheduling
CS/COE0447 Computer Organization & Assembly Language
Presentation transcript:

TF: Christine Bassem cbassem@cs.bu.edu CS 350 Discussion 2 TF: Christine Bassem cbassem@cs.bu.edu

Problem 1 The life cycle for a process consists of the following phases: Use the CPU for 3 milliseconds Issue an I/O (say network I/O) request Block until I/O request is done Upon termination of I/O, repeat. Assuming that completing the I/O request takes exactly 5 milliseconds, answer the following questions: What is the steady-state utilization of the CPU, if there is only one process in the system? What is the steady-state utilization of the I/O device, if there is only one process in the system? Assuming there is only one I/O device in the system, what is the maximum possible steady-state utilization of the CPU? How many processes would it take to get to that utilization? What happens if we increase the number of processes in the system beyond the level you obtained above? How could we get the CPU's steady-state utilization to get closer to 100%?

Problem 2 Consider the network shown below between nodes A and B, where the label on each network link (edge) indicates the capacity of that each edge. What is the capacity of the network between A and B? Explain how you obtained your answer. If you have the opportunity to upgrade a single link in the above network, which one would you upgrade? How much higher could the capacity of the network be if you upgrade that one link?

Problem 3 A Web server farm for stock trading consists of 16 machines. 8 of these machines have a latency of 1 second 5 of these machines have a latency of 3 seconds 3 of these machines have a latency of 6 seconds. When a request for a stock trade comes to the system, it is routed to one of the 16 machines with equal probability. Answer the following questions: What is the average latency of the web server farm? What is the median latency of the web server farm? Average latency = 1 * 8/16 + 3 * 5/16 + 6 * 3/16 =2.5625 Median Latency is center value of the latency 1 1 1 1 1 1 1 1 3 3 3 3 3 6 6 6 = (3 + 1) /2 = 2

The owner of the web server farm charges $20 dollars per trade but is under pressure (from competition) to give guarantees about the time it takes to execute a trade. Specifically, she is considering a policy that allows customers to get a full refund if their trades are executed in more than D seconds.  If a trade costs the owner $12 dollars to execute, what is the net profit or loss if D was chosen to be 2.5 seconds? A customer has to process three trades one after the other by issuing three consecutive requests to the web server farm described in the previous problem. A request is submitted immediately after the previous request has been finished.  Plot the probability density function for the time it takes to finish the processing of all three trades. Profit = 8$ if latency < D Profit = -12 if latency > D For D < 2.5, 8 machines will give latency < 2.5 and 8 will give latency > 2.5 E[profit] = 8 * prob(latency < 2.5) – 12 * prob(latency > 2.5) = 8/2 -12/2 = -2 Y = Total Time to finish the 3 requests. Y = {3 , 5, 7 ,8 , 9 , 10 ,12, 13,15,18} Each request can go to one of the 16 machines, we have 16^3 = 4096 cases. For y = 3, all requests have to go to the 1 second latency machines, then P(Y = 3) = 8/16 * 8/16 * 8/16 = 512/4096 For y = 5, 2 requests have to go to the 1 second latency machines, and one to the 3 second latency machine. P(Y =5) = 3 * 8/16 * 8/16 * 5/16 = 960/4096. (There are three cases (1,1,3) or (1,3,1) or (3, 1, 1)).