Professional Documents
Culture Documents
Unit 2 - Week 0: Assignment 0
Unit 2 - Week 0: Assignment 0
reviewer4@nptel.iitm.ac.in ▼
Courses » Real Time Operating System Announcements Course Ask a Question Progress FAQ
Unit 2 - week 0
Register for Certification
exam
Assignment 0
The due date for submitting this assignment has passed. Due on 2019-02-25, 23:59 IST.
Course outline As per our records you have not submitted this assignment.
week 0
Quiz : Assignment 0
Week 1
Week 2
Week 3
Week 4
(b)
Text Transcript
(c)
Solution (d)
2) 1 point
(a)
(b)
(c)
(d)
3) 1 point
Powered by
(c)
(d)
4) 1 point
(a)
(b)
(c)
(d)
5) 1 point
(a)
(b)
(c)
(d)
6) 1 point
(a)
(b)
(c)
(d)
Accepted Answers:
(b)
7) 1 point
(a)
(b)
(c)
(d)
8) 1 point
(a)
(b)
(c)
(d)
9) 1 point
(a)
(b)
(c)
(d)
10) 1 point
(a)
(b)
(c)
(d)
End
reviewer4@nptel.iitm.ac.in ▼
Unit 3 - Week 1
Register for
Certification exam Assignment 1
The due date for submitting this assignment has passed.
Course As per our records you have not submitted this Due on 2019-03-13, 23:59 IST.
outline
assignment.
How to access 1) In a nuclear reactor control system, the request from a human operator for a report of 1 point
the portal various system parameters can be considered as a sporadic task.
week 0 a. True
b. False
Week 1
No, the answer is incorrect.
Lecture 1 :
Introduction Score: 0
Accepted Answers:
Lecture 2 :
Basics of Tast b. False
scheduling
2) The phase of a periodic task indicates the time of separation between the start of two 1 point
Lecture 3: consecutive instances of the task.
Cyclic
executives a. True
Lecture 4: b. False
Cyclic
Scheduler No, the answer is incorrect.
Score: 0
Lecture 5 :
Cyclic Accepted Answers:
Scheduler b. False
Week 1 Lecture
3) A cyclic scheduler is an example of an event-driven scheduler. 1 point
Material
Quiz : a. True
Assignment 1
b. False
Feedback for
Week 1 No, the answer is incorrect.
Score: 0
Week 2
Accepted Answers:
b. False
Week 3
4) The table size stored for a cyclic scheduler is usually much smaller than that stored for a 1 point
Funded by
Accepted Answers:
Powered by
Solution
b. False
5) A good algorithm for scheduling of hard real-time tasks tries to complete each task in the 1 point
shortest possible time.
a. True
b. False
a. True
b. False
7) The performance constraints on a real-time system help to ensure that the environment of 1 point
the system is well-behaved
a. True
b. False
a. True
b. False
9) The objective of any good real-time task scheduling algorithm is to minimize the average 1 point
response times of the tasks
a. True
b. False
10)The goal of any good real-time operating system to complete every hard real-time task as 1 point
ahead of its deadline as possible
a. True
b. False
reviewer4@nptel.iitm.ac.in ▼
Unit 4 - Week 2
Register for
Certification exam Assignment 2
The due date for submitting this assignment has passed.
Course As per our records you have not submitted this Due on 2019-03-13, 23:59 IST.
outline
assignment.
How to access 1) Cyclic schedulers do not require storing a precomputed schedule unlike table-driven 1 point
the portal schedulers.
week 0 a. True
b. False
Week 1
No, the answer is incorrect.
Week 2 Score: 0
Lecture 8 : b. False
Rate Monotonic
No, the answer is incorrect.
Algorithm
Score: 0
Lecture 9 :
Accepted Answers:
RMA Task
Schedulability b. False
Lecture 10 : 3) For a non-preemptive operating system, RMA is an optimal static priority scheduling 1 point
Rate Monotonic algorithm for a set of periodic real-time tasks.
Analysis
Week 2 Lecture
a. True
Material b. False
Quiz :
No, the answer is incorrect.
Assignment 2
Score: 0
Feedback for
Accepted Answers:
Week 2
b. False
Week 3
© 2014 NPTEL - Privacy & Terms - Honor Code - FAQs -
A project of In association with
Funded by
Score: 0 Powered by
Text Transcript
Accepted Answers:
Solution a. True
5) While scheduling a set of hard real-time periodic tasks using a cyclic scheduler, if more 1 point
than one frame satisfies all the constraints on frame size then the largest of these frame sizes should
be chosen.
a. True
b. False
a. True
b. False
7) Data dependencies determine the precedence ordering among a set of tasks. 1 point
a. True
b. False
8) Scheduling decisions are made only at the arrival and completion of tasks in a 1 point
non-preemptive event-driven task scheduler
a. True
b. False
9) For uniprocessor systems, determining an optimal schedule for a set of independent 1 point
periodic hard real-time tasks without any resource-sharing constraints under static priority conditions is
an NP-complete problem
a. True
b. False
10)A set of periodic real-time tasks scheduled on a uniprocessor system using RMA 1 point
scheduling show similar completion time jitter
a. True
b. False
reviewer4@nptel.iitm.ac.in ▼
Unit 5 - Week 3
Register for
Certification exam Assignment 3
The due date for submitting this assignment has passed.
Course As per our records you have not submitted this Due on 2019-03-20, 23:59 IST.
outline
assignment.
How to access 1) Suppose a task needs three non-preemptable shared resources CR1, CR2, and CR3 1 point
the portal during its computation. Under HLP (Highest Locker Protocol), once the task acquires one of its
required resources, it is guaranteed not to block for acquiring the other required resources.
week 0
a. True
Week 1
b. False
Week 2 No, the answer is incorrect.
Score: 0
Week 3
Accepted Answers:
Lecture 11 : a. True
RMA
Generalizations 2) RMA (Rate Monotonic Algorithm) is optimal for scheduling access of several hard real-time 1 point
periodic tasks to a certain shared critical resource.
Lecture 12 :
Further RMA
Generalizations
a. True
b. False
Lecture 13 :
Resource
No, the answer is incorrect.
Sharing among
Real-Time
Score: 0
Tasks Accepted Answers:
Lecture 14 :
b. False
Solution to
3) DMA (Deadline Monotonic Algorithm) may produce a feasible schedule even when RMA 1 point
Priority
Inversion fails to produce a feasible schedule.
Problem
a. True
Lecture 15 :
Highest Locker b. False
Protocol
No, the answer is incorrect.
Week 3 Lecture Score: 0
Material
Accepted Answers:
Quiz : a. True
Assignment 3
4)©If 2014 NPTEL
traditional - Privacysharing
resource & Terms - Honor Code
mechanisms - FAQs
such -
as semaphores and monitors are used for 1 point
Feedback for
A project of sharing the access of several real-time tasks to a single
In association with critical resource, neither unbounded priority
Week 3
inversions, nor deadlocks can occur.
Week 4
a. True
Funded by
DOWNLOAD b. False
a. True
b. False
6) Unless a suitable resource-sharing protocol is used, even the lowest priority real-time task 1 point
in a system may suffer unbounded priority inversions.
a. True
b. False
7) Scheduling the access of a set of periodic hard real-time tasks to a set of non-preemptable 1 point
resources using PIP (Priority Inheritance Protocol) results in unbounded priority inversions for at least
some of the tasks
a. True
b. False
8) In a typical implementation of HLP (Highest Locker Protocol), for each critical resource a 1 point
separate queue is maintained for the waiting tasks
a. True
b. False
Score: 0
Accepted Answers:
b. False
9) When HLP (Highest Locker Protocol) is used for sharing critical resources among a set of 1 point
periodic hard real-time tasks, deadlocks among the concerned tasks on account of resource sharing
cannot occur
a. True
b. False
10)If a real-time system has two sporadic tasks that require computation times of 10 units and 1 point
20 units and have deadlines of 800 units and 500 units, then a polling server to handle these sporadic
tasks should have a computation time of 20units and period of 250 units
a. True
b. False
reviewer1@nptel.iitm.ac.in ▼
Unit 2 - Week 1
Course
outline Assignment 1
The due date for submitting this assignment has passed. Due on 2018-02-21, 23:59 IST.
How to access
the portal Submitted assignment
https://onlinecourses.nptel.ac.in/noc18_cs12/unit?unit=5&assessment=36 1/3
16/05/2018 Real Time Operating System - - Unit 2 - Week 1
The result produced by the task is discarded if produced after deadline
4) Which one of the following tasks can be considered to be a hard real- 1 point
time task?
The time between a job becoming ready and the job completing
The time between a job starting to execute and the job completing
The time between a job becoming ready and the job being taken up for
execution
The total time a job waits before becoming ready
No, the answer is incorrect.
Score: 0
Accepted Answers:
The time between a job becoming ready and the job completing
7) Given that two tasks have different phases, which one of the 1 point
following can be inferred?
The absolute deadline changes for different task instances, but the
relative deadline is fixed
The relative deadline changes for different task instances, but the
absolute deadline is fixed
Both the relative deadline for different task instances, as well as the
absolute deadline are fixed
https://onlinecourses.nptel.ac.in/noc18_cs12/unit?unit=5&assessment=36 2/3
16/05/2018 Real Time Operating System - - Unit 2 - Week 1
Both the relative deadline as well as the absolute deadline change for
different task instances
No, the answer is incorrect.
Score: 0
Accepted Answers:
The absolute deadline changes for different task instances, but the relative
deadline is fixed
9) Which one of the following is not true of a cyclic scheduler? 1 point
Computationally efficient
Takes very little memory space
Tolerant to changing execution times and periods of tasks
Can be used to schedule tasks with widely varying periods
No, the answer is incorrect.
Score: 0
Accepted Answers:
Tolerant to changing execution times and periods of tasks
10)Suppose a cyclic scheduler is used to schedule a set of periodic real-time tasks {Ti}. The 1 point
execution time, period, and deadline of a task Ti is given by <ei,Pi,di>. If the frame size chosen is F,
then which one of the following must be false?
F>max({ei})
F divides the major cycle
F –(gcd(F,Pi)/2) < di/2 for every task Ti
2×F – gcd(F,Pi) > di for every task Ti
Funded by
Powered by
https://onlinecourses.nptel.ac.in/noc18_cs12/unit?unit=5&assessment=36 3/3
16/05/2018 Real Time Operating System - - Unit 4 - Week 3
reviewer1@nptel.iitm.ac.in ▼
Unit 4 - Week 3
Course
outline Assignment 3
The due date for submitting this assignment has passed. Due on 2018-02-28, 23:59 IST.
How to access
the portal Submitted assignment
Week 1 1) Consider a certain application in which two periodic real-time tasks 1 point
are to be run on a uniprocessor using a rate monotonic scheduler. What should
Week 2 be the maximum processor utilization due to the two tasks, if it is required that
the two tasks should run without missing any deadlines?
Week 3
0.88
Lecture 11 : 0.82
RMA
0.76
Generalizations
0.73
Lecture 12 :
Further RMA No, the answer is incorrect.
Generalizations Score: 0
Lecture 13 : Accepted Answers:
Resource 0.82
Sharing among
Real-Time 2) Suppose a single periodic real-time task is to be run on a uniprocessor 1 point
Tasks using a rate monotonic scheduler. For the task to run without missing any
Lecture 14 : deadlines, what should be the maximum processor utilization due the task?
Solution to
Priority 1
Inversion 0.88
Problem
0.82
Lecture 15 : 0.76
Highest Locker
Protocol No, the answer is incorrect.
Feedback for
Score: 0
Week 3 Accepted Answers:
Quiz :
1
Assignment 3
3) Consider a periodic task set whose characteristics are shown in the 1 point
Week 3 Lecture following table. Would this task set be schedulable on a uniprocessor under
Material rate monotonic scheduling based on the Liu-Layland criterion for determining
Assignment-3
schedulability?
Solutions Task Set (All data in milliseconds)
https://onlinecourses.nptel.ac.in/noc18_cs12/unit?unit=7&assessment=42 1/4
16/05/2018 Real Time Operating System - - Unit 4 - Week 3
Task3 100 20 50 50
20 milliseconds
40 milliseconds
60 milliseconds
70 milliseconds
No, the answer is incorrect.
Score: 0
Accepted Answers:
60 milliseconds
5) Consider an application in which a set of periodic real-time tasks 1 point
share a set of non-preemptable resources and are scheduled using a rate
monotonic scheduler. Which one of the following problems cannot be
completely prevented even when choice can be made from any of the
available resource sharing protocols?
Deadlock
Chain blocking
Priority inversion
Unbounded priority inversion
No, the answer is incorrect.
Score: 0
Accepted Answers:
Priority inversion
6) Which one of the following is the closest definition of a critical 1 point
section?
https://onlinecourses.nptel.ac.in/noc18_cs12/unit?unit=7&assessment=42 2/4
16/05/2018 Real Time Operating System - - Unit 4 - Week 3
7) Consider an application in which a set of periodic real-time tasks 1 point
share a set of non-preeemptable resources and are scheduled using a rate
monotonic scheduler incorporating the basic priority inheritance protocol.
Which one of the following problems cannot occur in this situation?
Deadlock
Chain blocking
Priority inversion
Unbounded priority inversion
No, the answer is incorrect.
Score: 0
Accepted Answers:
Unbounded priority inversion
8) Assume that four periodic real-time tasks T1, T2, T3, and T4 share three non- 1 point
preemptable resources R1, R2, and R3 as shown in the following diagram. The
time for which each task needs a resource is annotated on the arrow connecting the task
to the corresponding resource. The tasks are arranged in decreasing order of their
priorities, with T1 being the highest priority task and T4 the lowest priority task. The tasks
are scheduled using a rate monotonic scheduler incorporating the basic priority
inheritance protocol. Which tasks would undergo direct blocking?
5 units
2 units
10 units
It does not undergo any direct inversion
https://onlinecourses.nptel.ac.in/noc18_cs12/unit?unit=7&assessment=42 3/4
16/05/2018 Real Time Operating System - - Unit 4 - Week 3
No, the answer is incorrect.
Score: 0
Accepted Answers:
10 units
10)Assume that four periodic real-time tasks T1, T2, T3, and T4 share three non- 1 point
preemptable resources R1, R2, and R3 as shown in the following diagram. The
time for which each task needs a resource is annotated on the arrow connecting the task
to the corresponding resource. The tasks are arranged in decreasing order of their
priorities, with T1 being the highest priority task and T4 the lowest priority task. The tasks
are scheduled using a rate monotonic scheduler with the basic priority inheritance
protocol. The task T3 would undergo inheritance blocking due to which tasks?
T1
T2
T4
Both T2 and T4
No, the answer is incorrect.
Score: 0
Accepted Answers:
T4
Funded by
Powered by
https://onlinecourses.nptel.ac.in/noc18_cs12/unit?unit=7&assessment=42 4/4