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)...
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 the set of processes shown in the table above, with the length of the CPU-burst...
Consider the set of processes shown in the table above, with the length of the CPU-burst time given in milliseconds. The processes are assumed to have arrived in the order P5, P4, P3, P2 , and P1, all approximately at time 0. Draw three Gantt charts illustrating the execution of these processes using SJF, Round-Robin (quantum size = 3), and a non-preemptive priority (a smaller priority number implies a higher priority) scheduling. Calculate average waiting time of each scheduling. Calculate...
Consider the following set of processes, with the length of the CPU burst given in milliseconds:...
Consider the following set of processes, with the length of the CPU burst given in milliseconds: Process Burst Time Priority P1 2 2 P2 1 1 P3 8 4 P4 4 2 P5 5 3 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0. Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: FCFS, SJF, non preemptive priority (a smaller priority number implies...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT