Assgn8 NPTEL
Assgn8 NPTEL
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?
QUESTION 2:
What is the reason for restricting the number of writes in flash memory?
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
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
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?
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?
QUESTION 7:
Option a belongs to process control system calls while remaining options represent file system
calls.
QUESTION 8:
Task preemption time = time spent in kernel mode + context switch time
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 9:
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:
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:
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***********