Question: please ! ! ( picture included ) Q 1 ) ( 4 marks ) In a simple priority - driven pre - emptive scheduler, three

please !!(picture included)
Q1)(4 marks)
In a simple priority-driven pre-emptive scheduler, three periodic tasks T1, T2 and T3 and two background (BG) tasks T4 and T5 are scheduled. The periodic task T1 has the highest priority, executes once every 20ms, and requires 5ms of execution time. The periodic task T2 requires 5ms of execution time every 50ms. The periodic task T3 requires 5ms of execution time every 100ms. The BG T4, and T5 each requires 100ms of execution time. Assume all tasks start at time 0ms.
(1) Determine the time T4 and T5 will complete.
(2) Draw the chart.
0,5
Q2)(3.5 marks)
Table below shows the mapping between process requests (POP3) and resource allocation (A,B, and C resources). A has 5 instances, B has 1, and C has 5 instances.
\table[[,Allocation,Request,Available],[,A,B,C,A,B,C,A,B,C],[P0,0,1,0,0,0,0,0,0,0],[P1,2,0,0,2,0,2,,,],[P2,3,0,3,0,1,0,,,],[P3,0,0,2,0,0,2,,,]]
(1) Is there a sequence for processes that will allow deadlock to be avoided? If yes, what is it?
(2) If P2 increases its request for C resources by 2 more, what will the sequence be, if any?
please ! ! ( picture included ) Q 1 ) ( 4 marks )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!