Professional Documents
Culture Documents
Solutions For Real-Time System by Jane W. S. Liu (Chapter 8)
Solutions For Real-Time System by Jane W. S. Liu (Chapter 8)
Get unlimited access to the best of Medium for less than $1/week. Become a member
This post provides the possible solutions for Chapter 8in Real-Time System by Jane
W. S. Liu. The book is available here.
Q.8.1: A system contains five jobs. There are three resources X, Y and Z. The
resources required of the jobs are listed below.
J1: [X;2]
J2 : NONE
J3 : [Y;1]
J4 : [X;3 [Z;1]]
J5 : [Y;4 [Z;2]]
The priority Ji is higher than the priority of Jj for i < j. What are the maximum
blocking times of the jobs under the non-preemptable critical section protocol and
under the priority ceiling protocol?
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 1/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
Q.8.2: A system contains the following four periodic tasks. The tasks are scheduled
by the rate monotonic algorithm and the priority ceiling protocol.
T1 = (3,0.75) b1 = 0.9
T2 = (3.5,1.5) b2 = 0.75
T3 = (6,0.6) b3 = 0.9
T4 = (10,1)
bi is the blocking time of Ti. Are the tasks schedulable? Explain your answer.
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 2/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
Q.8.3: Consider a fixed priority system in which there are five tasks Ti, for i = 1, 2, 3,
4 and 5, with decreasing priorities. There are two resources X and Y. The critical
sections of T1,T2, T4 and T5 are [Y;3], [X;4], [Y;5 [X;2]] and [X;10] respectively. (Note
that T3 does not require any resource.) Find the blocking time bi(rc) of the tasks.
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 3/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
Q.8.7: A system contains the following five periodic tasks. The tasks are scheduled
rate monotonically.
T1 = (6, 3, [X;2])
T2 = (20, 5, [Y;2])
Compare the schedulability of the system when the priority ceiling protocol is used
versus the NPCS protocol.
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 4/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
Q.8.10: Given a system consisting of the following tasks whose periods, execution
times and resource requirements are given below.
There are 3 units of X, 2 units of Y and 1 unit of Z. The tasks are scheduled by EDF
algorithm and the stack based protocol.
a) Find the preemption ceiling of each resource and the maximum blocking time for
each task.
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 5/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
b) Are the tasks schedulable according to the earliest deadline first algorithm? Why?
Open in app
Search
Follow
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 6/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
Neeraj Dhanraj
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 7/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
Neeraj Dhanraj
10
Neeraj Dhanraj
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 8/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
7 2
Neeraj Dhanraj
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 9/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
AL Anany
The ChatGPT Hype Is Over — Now Watch How Google Will Kill ChatGPT.
It never happens instantly. The business game is longer than you know.
16.8K 492
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 10/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
Barack Obama
28K 728
Lists
Productivity 101
20 stories · 716 saves
Branding
33 stories · 70 saves
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 11/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
Unbecoming
68K 980
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 12/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
14.2K 334
6.2K 68
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 13/14
10/28/23, 10:16 AM Solutions for Real-Time System by Jane W. S. Liu (Chapter 8) | by Neeraj Dhanraj | Medium
6.4K 63
https://medium.com/@neerajdhanraj/solutions-for-real-time-system-by-jane-w-s-liu-chapter-8-5a27653cb28c 14/14