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

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...
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...
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...
PHC214 Consider the tasks for team leaders in Table 8-1. Answer the following questions about a...
PHC214 Consider the tasks for team leaders in Table 8-1. Answer the following questions about a time when you served on a healthcare team (3 paragraphs). Compose your paper in MS Word. In what ways did the leader create the conditions that enabled the team to function? How did the leader build the team’s capacity to do its work? To what extent did the leader coach the team to optimize its performance? Review the methods for improving team decision making...
Use a financial calculator or computer software to answer the following questions: a. What is the...
Use a financial calculator or computer software to answer the following questions: a. What is the present value of $450,000 that is to be received at the end of 20 years if the discount rate is 10%? b. How would your answer change in (a) if the $450,000 is to be received received at the end of 15 years?
Hypothesis testing is a set of core analysis tools used to answer questions about the characteristics...
Hypothesis testing is a set of core analysis tools used to answer questions about the characteristics of a population. The process involves a number of steps, varying from five to ten depending upon the author of the text being used. What are these steps and why is it so important to follow and explicitly state each step in the process? In your responses discuss the properties of hypotheses, the importance and meaning of the level of significance and the various...
Hypothesis testing is a set of core analysis tools used to answer questions about the characteristics...
Hypothesis testing is a set of core analysis tools used to answer questions about the characteristics of a population. The process involves a number of steps, varying from five to ten depending upon the author of the text being used. What are these steps and why is it so important to follow and explicitly state each step in the process? In your responses discuss the properties of hypotheses, the importance and meaning of the level of significance and the various...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT