Question

In: Computer Science

Consider a job mix in which there is one CPU-intensive job, A, that has a single...

Consider a job mix in which there is one CPU-intensive job, A, that has a single infinitely long CPU burst, and 3 I/O-intensive jobs, B, C, and D. The scheduler uses Round Robin scheduling with a time quantum of 3 ms. Here is an observed execution, where initially A is running and B, C, and D are in the ready queue in this order:

AAAoBBoCoDoAAAoBBoAAAoDoAAAoBBoCoDoAAAoBBo

Answer the following questions based on the above. Explain and give a specify a part of the execution.

a) Could any of B’s I/O-burst time be 6 ms? Explain.

b) Could any of B’s I/O-burst time be 4 ms? Explain.

Solutions

Expert Solution

The solution for the above problem is given below and if you feel any problem then feel free to ask.

Solution:-

a) Yes, B's second I/O burst time can be 6 ms as in between the second and third execution of B in the scheduling there are two processes running first A runs for 3 ms and then D for 1 ms and then again A for 3 ms which sums up to be 7 ms which is more than the given I/O burst time which is 6 ms. Hence, the Burst time for the second time when B goes for I/O operation can be 6 ms as it is running after 7 ms from its previous run.

b) Yes, the I/O burst time of B can also be 4 ms for the first and second time it goes for I/O operation. As in both first and third time, there are three processes running first C runs for 1 ms and then D for 1 ms and then A for 3 ms which sums up to be 5 ms which is more than the I/O burst time which is given as 4 ms. Hence, the Burst time for the first and third time when B goes for I/O operation can be 4 ms as it is running again after 5 ms from its previous runs in scheduling in both cases.


Related Solutions

Consider the following set of jobs to be scheduled for execution on a single CPU system....
Consider the following set of jobs to be scheduled for execution on a single CPU system. Job Arrival Time Burst (msec) Priority A 0 6 3 (Silver) B 1 2 1 (Diamond) C 3 5 3 (Silver) D 5 3 4 (Bronze) E 7 2 2 (Gold)    (a)     Draw a Gantt chart showing First-Come-First-Served (FCFS) scheduling for these jobs. (b)     Draw a Gantt chart showing preemptive PRIORITY scheduling. (c)    Draw a Gantt chart showing Highest Response Ratio Next (HRRN) scheduling. (d)     Draw a...
Consider the following set of jobs to be scheduled for execution on a single CPU system....
Consider the following set of jobs to be scheduled for execution on a single CPU system. Job Arrival Time Burst (msec) Priority A 0 6 3 (Silver) B 1 2 1 (Diamond) C 3 5 3 (Silver) D 5 3 4 (Bronze) E 7 2 2 (Gold)    Draw a Gantt chart showing First-Come-First-Served (FCFS) scheduling for these jobs.       Draw a Gantt chart showing preemptive PRIORITY scheduling. Draw a Gantt chart showing Highest Response Ratio Next (HRRN) scheduling.     Draw a...
Consider the following set of jobs to be scheduled for execution on a single CPU system....
Consider the following set of jobs to be scheduled for execution on a single CPU system. Job Arrival Time Burst (msec) Priority A 0 6 3 (Silver) B 1 2 1 (Diamond) C 3 5 3 (Silver) D 5 3 4 (Bronze) E 7 2 2 (Gold)    (a)     Draw a Gantt chart showing First-Come-First-Served (FCFS) scheduling for these jobs. (b)     Draw a Gantt chart showing preemptive PRIORITY scheduling. (c)    Draw a Gantt chart showing Highest Response Ratio Next (HRRN) scheduling. (d)     Draw a...
Consider the following set of jobs to be scheduled for execution on a single CPU system....
Consider the following set of jobs to be scheduled for execution on a single CPU system. Job Arrival Time Burst (msec) Priority A 0 6 3 (Silver) B 1 2 1 (Diamond) C 3 5 3 (Silver) D 5 3 4 (Bronze) E 7 2 2 (Gold)    (a) Draw a Gantt chart showing First-Come-First-Served (FCFS) scheduling for these jobs. [3 Marks] Answer (a) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15...
Product mix decision. The Jackson Company has one machine on which it can produce either of...
Product mix decision. The Jackson Company has one machine on which it can produce either of two products, Y or Z. Sales demand for both products is such that the machine could operate at full capacity on either of the products, and Jackson can sell all output at current prices. Product Y requires one hour of machine time per unit of output and Product Z requires two hours of machine time per unit of output. The following information summarizes the...
Job Costing I Monticello Company uses a perpetual inventory system and has a highly labour intensive...
Job Costing I Monticello Company uses a perpetual inventory system and has a highly labour intensive production process, so it assigns manufacturing overhead based on direct labour cost. Monticello’s predetermined overhead application rate for 2017 was computed from the following data: Total estimated factory overhead $1,232,500 Total estimated direct labour cost $850,000 The following activities took place in the work in process inventory during June: WIP Inventory A/C June 1 Bal. 25,625 Direct Materials Used 127,400 Other transactions incurred: ...
Which of the following statement is correct? Select one: a. Firms in labor-intensive industries with enormous...
Which of the following statement is correct? Select one: a. Firms in labor-intensive industries with enormous production economies of scale may be forced to sell overseas in order to spread their overhead over a larger quantity of sales. b. The unit cost reduction through high volume production is called the economies of scale. c. All the answers are incorrect. d. The multinational financial system enables companies to avoid exchange rate risk. e. The distinguishing characteristic of the multinational corporation (MNC)...
Given the following mix of job, job lengths, and arrival times, assume a time slice of...
Given the following mix of job, job lengths, and arrival times, assume a time slice of 10 and compute the completion for each job and average response time for the FCFS, SJN, SRT, and Round Robin Scheduling Algorithm. jobs arrival time CPU cycle(ms) A 0 16 B 3 2 C 5 11 D 9 6 E 10 1 F 12 9 G 14 4 H 16 14 I 17 1 J 19 8
The economy of a certain country has a labor-intensive manufacturing sector. One of its components is...
The economy of a certain country has a labor-intensive manufacturing sector. One of its components is the furniture industry, which has many producers and generates a good return on profits. However, global situations cause operating costs to increase and to a lesser or greater extent affect this industrial sector, which is very competitive. The A&H Furniture company, specialized in rustic furniture, operates in this industry and distributes both for the local and international markets. Given the increase in operating costs...
Consider Asset A and B, which asset has higher systematic risk? Which one has higher total...
Consider Asset A and B, which asset has higher systematic risk? Which one has higher total risk? Show your calculations. Assume the market risk premium is 8 percent, the risk-free rate is 4 percent, and the capital asset pricing model holds. (Rounding your answers to four decimal places) State of Economy Probability of State of Economy Rate of Return if State Occurs Asset A Asset B Recession 0.10 0.02 -0.25 Normal 0.70 0.25 0.09 Irrational exuberance 0.20 0.05 0.40
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT