Question

In: Computer Science

Answer the following questions about computer operating systems: Consider the following set of processes, with the...

Answer the following questions about computer operating systems:

  1. Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:

Process

Burst Time

Priority

P1

10

3

P2

1

1

P3

2

3

P4

1

4

P5

5

2

The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0

  1. Draw four Gantt charts illustrating the execution of these processes using FCFS, SJF, nonpreemptive priority (lower number implies a higher priority), and RR (quantum=1) scheduling. (If you do this on paper, take a photo with your phone and insert it into your document, and upload the photo as a separate jpeg file as well.)
  2. What is the turnaround time of each process for each of the scheduling algorithms in part a?
  3. What is the waiting time of each process for each of the scheduling algorithms in part a?
  4. Which of the schedules in prat a results in the minimal average waiting time (over all processes)?
  1. Consider the following resource allocation table.

Allocated

Process

R1

R2

R3

P1

2

3

0

P2

1

1

1

P3

4

1

2

P4

0

0

1

P5

0

0

0

Need

Process

R1

R2

R3

P1

5

0

4

P2

2

0

1

P3

0

1

0

P4

5

2

1

P5

6

4

0

Available = (0 1 1)

Which, if any, of the processes above are deadlocked? If they are not deadlocked, in which order can the processes above execute?

Solutions

Expert Solution

According to the policy, in case of multiple Questions, only dirst one is mandatory. So, solving question 1, as per the time permits.


Related Solutions

Answer the following questions about computer operating systems: 1. Which of the following conditions must exist...
Answer the following questions about computer operating systems: 1. Which of the following conditions must exist for deadlock to occur? Group of answer choices All of these. No preemption Circular wait Hold and wait Mutual exclusion 2. Which of the following is not a method for dealing with deadlock? Group of answer choices deadlock prevention deadlock deletion deadlock detection and recovery deadlock avoidance 3. A state where deadlock might occur is known as a(n) ________________. Group of answer choices safe...
Consider the operating cycle to answer the following questions. Operating Cycle cash-- settle payables -- Account...
Consider the operating cycle to answer the following questions. Operating Cycle cash-- settle payables -- Account Payable-- purchases -- Buy with payables-- inventories -- sales-- accounts receivable -- returned to cash -- (Again the cycle repeat) --- Cash Why might a company want to reduce its cash conversion cycle? (Hint: Consider the financial statement implications of reducing the cash conversion cycle.) How might a company reduce its cash conversion cycle? Examine and discuss the potential impacts on customers and suppliers...
COURSE : IT Enterprise systems Consider the following enterprise scenario and answer the following questions. ABC...
COURSE : IT Enterprise systems Consider the following enterprise scenario and answer the following questions. ABC is a wholesale company that sells electrical equipment and provides a website from which customers can inquiry about products and identify what they want to buy. When costumers order electrical equipment, they place their order on the ABC website. ABC does not own or hold any equipment as inventory. Rather, the ABC orders the equipment from the appropriate supplier and ranges for the equipment...
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...
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, a. Draw four Gantt charts that illustrate the execution of these processes using the   following scheduling algorithms: FCFS, SJF, nonpreemptive...
1. Consider the following set of processes, with the length of CPU burst and arrival time...
1. Consider the following set of processes, with the length of CPU burst and arrival time given in milliseconds.                                                              Process            Burst time       Priority            Arrival Time             P1                         10                    3                              0 P2                          1                     1                              2 P3                          2                     4                              4 P4                          5                     2                              8 a) Draw the Gantt chart that illustrates the execution of these processes using the preemptive priority scheduling algorithm (a smaller priority number implies a higher priority). b) What...
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:...
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process          Burst Time     P1                             5         P2                             3             P3                             1           P4                             7            P5                             4            The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0. If FCFS scheduling is used, what is the average turnaround time of these processes? Answer: Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process          Burst Time     P1                             5         P2                             3             P3                             1           P4                             7            P5                             4           ...
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:...
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process Arrival Time Burst Time P1 0 5 P2 2 3 P3 3 2 P4 4 4 P5 5 3 a. Draw Gantt charts illustrating the execution of these processes using SJF pre-emptive b. What is the turnaround time of each process for each of the scheduling algorithms c. What is the waiting time of each process for each of the scheduling algorithms  
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:...
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process Burst Time Priority Arrival Time P1 10 3 0 P2 1 1 12 P3 2 4 0 P4 1 5 0 P5 5 2 0 In the above table, a smaller priority number implies a higher priority. Suppose that these processes are scheduled by the priority policy with preemption. Draw the Gantt chart (i.e., time chart) illustrating the execution of these processes. What...
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds,...
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds, and the priority given in integers (lower numbers represent higher priorities) :     Process Arrival Time Burst Time priority          P1                             0 17 2       P2 5 8 3       P3 7 11 1 a. Draw Gantt charts illustrating the execution of these processes using nonpreemptive priority and preemptive priority, and Round Robins scheduling (time quantum = 4 ms). b. What is the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT