0% found this document useful (0 votes)
34 views6 pages

Assgn8 NPTEL

This document contains a 12 question multiple choice quiz about real-time operating systems. The questions cover topics such as task scheduling priorities, timers, interrupt handling, priority levels in Unix and Windows NT, and shortcomings of the Windows NT kernel. The questions are followed by detailed explanations of the correct answers.

Uploaded by

Sweety
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views6 pages

Assgn8 NPTEL

This document contains a 12 question multiple choice quiz about real-time operating systems. The questions cover topics such as task scheduling priorities, timers, interrupt handling, priority levels in Unix and Windows NT, and shortcomings of the Windows NT kernel. The questions are followed by detailed explanations of the correct answers.

Uploaded by

Sweety
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

Real Time System


Assignment- 8
TYPE OF QUESTION: MCQ/MSQ
Number of questions: 12 Total mark: 12 X 1 = 12

For each of the following questions one or more of the options is/are correct. Choose the correct
options.

QUESTION 1:

Normally, the traditional operating systems dynamically change the priority levels of tasks. The
objective behind this is which of the following?

a. To provide support for resource sharing among tasks


b. To maximize the system throughput
c. To achieve low interrupt latency time
d. To achieve low task preemption time
e. To achieve low task switching time
Correct Answer: b. To maximize the system throughput
Detailed Solution:
Dynamically changing the priority of tasks improves system throughput.

QUESTION 2:

What is the reason for restricting the number of writes in flash memory?

a. To increase the memory capacity


b. To reduce the area dedicated to control erasing
c. Due to wear in insulating oxide layer
d. None of these
Correct Answer: c. Due to wear in insulating oxide layer

Detailed Solution:
The number of writes in flash memory is restricted due to the wear in insulating oxide layer.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 3:

Which one of the following types of timers should be used to detect whether a task misses its
deadline?

a. Periodic timer
b. One shot timer
c. Randomized timer
d. Arbitrary timer
e. None of these

Correct Answer: b. One shot timer

Detailed Solution:

One shot timer used to detect if a task misses its deadline and initiates exception handling.

QUESTION 4:

Real-time operating systems maintain either per-process timer queues or a single system-wide timer
queue. Suppose there are 4 timers T1, T2, T3 and T4 with the expiration times set as 7, 1, 8, and 15
units respectively. How these timers will be arranged in the timer queue?

a. Q1 = {15, 8, 7, 1}
b. Q2 = {7, 1, 8, 15}
c. Q3 = {1, 7, 8, 15}
d. Q4 = {8, 7, 15, 1}
e. None of these

Correct Answer: a. Q1 = {15, 8, 7, 1}

Detailed Solution:

The timer queue contains all timers arranged in order of their expiration times.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 5:

Usually, at each clock interrupt, the scheduler decrements the time slice (budget) remaining for the
executing task. While updating the execution budget, what will happen if the remaining time slice
(budget) for the executing task becomes zero and the task is not yet complete?

a. The task continues its execution.


b. The task is preempted and the scheduler is invoked to select another task to run.
c. The task waits for I/O.
d. The task terminates.
e. No action is taken.

Correct Answer: b. The task is preempted and the scheduler is invoked to select another task to
run.

Detailed Solution:

After each clock interrupt, the scheduler decrements the remaining time slice of the executing
task. If the task is not complete and the slice (budget) becomes 0, the task is preempted and
scheduler is invoked to select another task to run.

QUESTION 6:

In Unix, how are the priority levels assigned to the kernel and user levels?

a. Kernel (0-39), user (40-127)


b. Kernel (0-49), user (50-127)
c. Kernel (0-59), user (60-127)
d. Kernel (0-69), user (70-127)
e. Kernel (0-79), user (80-127)

Correct Answer: b. Kernel (0-49), user (50-127)


Detailed Solution:
Kernel priority is from 0-49 and User priority is from 50-127.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 7:

Select the odd-one out.

a. fork, wait, exec


b. open, read, write
c. chdir, chown, chmod
d. read, write, close

Correct Answer: a. fork, wait, exec


Detailed Solution:

Option a belongs to process control system calls while remaining options represent file system
calls.

QUESTION 8:

In Unix, Task preemption time =

a. time spent in kernel mode + context switch time


b. time spent in user mode + context switch time
c. time spent in kernel mode + interrupt latency time
d. time spent in user mode + interrupt latency time
e. time spent in kernel mode + response time

Correct Answer: a. time spent in kernel mode + context switch time


Detailed Solution:

Task preemption time = time spent in kernel mode + context switch time
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 9:

Which one of the following statements is false?

a. Unix V has a non-preemptive kernel.


b. Under the Unix V operating system, computation intensive tasks dynamically
gravitate to higher priorities.
c. Unix V has a worst case task response time of about one second that is primarily
attributable to the non-preemptive kernel.
d. Unix dynamically recomputes task priorities in an attempt to meet task deadlines.
e. In Unix V, device drivers run in kernel mode.
Correct Answer: b. Under the Unix V operating system, computation intensive tasks dynamically
gravitate to higher priorities.
Detailed Solution:

To increase average throughput, Unix V raises the priority of I/O intensive tasks. It is done
otherwise the real-time task can miss its deadline.

QUESTION 10:

In Windows NT, the process screen saver uses which of the following priority classes?

a. Real-Time Critical
b. Real-Time Normal
c. Dynamic Critical
d. Dynamic Normal
e. Idle
Correct Answer: e. Idle

Detailed Solution:
Screen saver runs in idle mode.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 11:

Which of the following are NOT shortcomings of Windows NT?

a. Causing unbounded priority inversion


b. Weak resource access control
c. Poor support for distributed applications
d. Availability of real-time priority levels
e. Having clocks with sufficiently finer resolutions

Correct Answer: d. Availability of real-time priority levels


e. Having clocks with sufficiently finer resolutions

Detailed Solution:
Windows NT has 32 levels of priority divided into real-time and dynamic class. The precision of
the timer is 1ms.

QUESTION 12:

Which of the following features are supported by Windows NT?

a. Multithreading
b. Availability of real-time priority levels
c. Clocks with sufficiently finer resolutions
d. Timers
e. All of these
Correct Answer: e. All of these

Detailed Solution:
Windows NT supports multithreading and contains 32 levels of priority divided into real-time and
dynamic class. The precision of timer is 1ms which justifies presence of clock with finer resolution.

************END***********

You might also like