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  
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...
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...
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...
The following questions use the table below on soybean oil. Answer the following questions about an...
The following questions use the table below on soybean oil. Answer the following questions about an end user needing to purchase soybean oil. One soybean oil contract is 60,000 pounds (lbs). Now Later Cash Soybean Meal Market $0.335/lb $0.346/lb Futures Soybean Meal Market $0.3000/lb $0.311/lb 1) Is the individual concerned about price increasing or decreasing? 2) What is the initial action in the futures market: buy or sell? 3) What is the cash price paid/received by the individual later? 4)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT