Question

In: Computer Science

Modeling multiprogramming: (a) Assume the I/O fraction time of all processes is 20%, and assume processes...

Modeling multiprogramming: (a) Assume the I/O fraction time of all processes is 20%, and assume processes are independent from each other, what’s the CPU utilization, if the number of processes, n = 1, 2, 4, and 8, respectively? (b) If the I/O fraction time is 50% for all processes, what’s the CPU utilization again, if the number of processes, n = 1, 2, 4, and 8, respectively?

Solutions

Expert Solution

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

Since the processes are independent of each other, they can be run parallelly.

If there are n independent processes then, CPU utilization = 1- where P is the I/O fraction time of all processes.

a) I/O fraction time of all processes =20%=0.2

For n=1, CPU utilization = 1-0.2=0.8 or 80%

For n=2, CPU utilization = 1-=0.96 or 96%

For n=4, CPU utilization = 1-=0.9984 or 99.84%

For n=8, CPU utilization = 1-=0.99999744 or 99.999744%

For n=16, CPU utilization = 1-=0.9999999 or 99.99999%

b) I/O fraction time of all processes =50%=0.5

For n=1, CPU utilization = 1-0.5=0.5 or 50%

For n=2, CPU utilization = 1-=0.75 or 75%

For n=4, CPU utilization = 1-=0.9375 or 93.75%

For n=8, CPU utilization = 1-=0.99609 or 99.609%

For n=16, CPU utilization = 1-=0.99998 or 99.998%

Kindly revert for any queries

Thanks.


Related Solutions

Assume there are three processes A, B and C. All processes are submitted for execution at...
Assume there are three processes A, B and C. All processes are submitted for execution at the same time. The process A executes for 2 milliseconds and then does I/O for 3 milliseconds and then executes for 3 milliseconds more. The process B executes for 4 milliseconds and then does I/O for 7 milliseconds. The process C executes for 2 millisecond and then does I/O for 4 milliseconds. Assume no contention for the resources and the order of execution (priority)...
Assume there are three processes A, B and C. All processes are submitted for execution at...
Assume there are three processes A, B and C. All processes are submitted for execution at the same time. The process A executes for 2 milliseconds and then does I/O for 3 milliseconds and then executes for 3 milliseconds more. The process B executes for 4 milliseconds and then does I/O for 7 milliseconds. The process C executes for 2 millisecond and then does I/O for 4 milliseconds. Assume no contention for the resources and the order of execution (priority)...
Important notes: Use Console I/O (Scanner and System.out) for all user I/O in this lab. Do...
Important notes: Use Console I/O (Scanner and System.out) for all user I/O in this lab. Do not hard code data file paths or filenames; always ask the user for them. Complete the Monster Attack project by doing the following: In place of the driver used in homework 2, add a menu with a loop and switch (this is already done, ignore this). The user must be able to add attacks, get a report on existing attacks, save a file, retrieve...
Theoretical changes over time in the field of I/O psychology.
Theoretical changes over time in the field of I/O psychology.
Problem 2. Interrupt-driven I/O (20 pt.) Consider a system employing interrupt-driven I/O for a particular device...
Problem 2. Interrupt-driven I/O (20 pt.) Consider a system employing interrupt-driven I/O for a particular device that transfers data at an average of 2000 bytes/sec on a continuous basis. a. Assume that interrupt processing takes about 200 usec (i.e., the time to jump to the interrupt service routine (ISR), execute it, and return to the main program). Determine what fraction of processor time is consumed by this I/O device if it interrupts for every byte. b. Now assume that the...
Chapter 20 Inventory management, Just -in-time, and simplified costing methods This is all the information I...
Chapter 20 Inventory management, Just -in-time, and simplified costing methods This is all the information I have As a new senior accountant of Troy Rugs Inc. an exotic rug manufacturer, you have taken on the new responsibility of lean accounting within the company. During your monthly analysis, you outline many areas that the company does not possess to adopt a lean accounting system. You have observed that setup times take a week versus two days as they should. You noticed...
Assume an initial underlying stock price of $20, an exercise price of $20, a time to...
Assume an initial underlying stock price of $20, an exercise price of $20, a time to expiration of 3 months, a risk free rate of 12% and a underlying stock return variance of 16%. If the risk free rate decreased to 6% and assuming other variables are held constant, the call option value would A) increase B) remain the same C) decrease D) indeterminate from the information given
In your opinion, does the role of I/O psychologists change in the time of economic recession?...
In your opinion, does the role of I/O psychologists change in the time of economic recession? What can they do differently?
how do i find a peak in time complexity of O(log(n)) in a list? input: a...
how do i find a peak in time complexity of O(log(n)) in a list? input: a list of numbers or integers output: a possible local peak in the list for an example: calling function [2,3,8,9,5] would return 3 im thinking about using binary search but it would require a sorted list.
How do I sort a sequence A = 7,2,3,14,2,8,8,3,7,10 in O(nlogm) time where n is size...
How do I sort a sequence A = 7,2,3,14,2,8,8,3,7,10 in O(nlogm) time where n is size of A and m is the number of distinct elements? No code, just a good explanation will do
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT