NPTEL Introduction to Operating Systems Week 4 Assignment Answers 2024

Sanket
By Sanket

NPTEL Introduction to Operating Systems Week 4 Assignment Answers 2024

1. When an interrupt occurs the privilege level at the CPU is changed to __ from ______________.

  • ring 0 , ring 3
  • ring 1 , ring 2
  • ring 2 , ring 1
  • ring 3 , ring 0
Answer :- For Answers Click Here 

2. Which of the following acts as a cache for page table mappings?

  • TLB
  • DCache
  • GDT
  • LDT
Answer :- For Answers Click Here 

3. State True or False

INTR is the instruction used in x86 to generate software interrupts.

  • True
  • False
Answer :- 

4. A system has 5 processes, where the scheduling used is non-preemptive. What is the total number of scheduling possible__________?

Answer :- 

5. The number returned by a successful “write” system call handler indicates:

  • The number of bytes written to the file descriptor
  • The return status of the system call
  • The system call number for write
  • None of the above
Answer :- 

6. State True or False

Kernel stack is used to store the function arguments during system calls.

  • True
  • False
Answer :- For Answers Click Here 

7. What is the minimum number of traditional 8 input pin PICs required to interface 32 devices with CPU?

  • 8
  • 4
  • 32
  • 2
Answer :- 

8. State True or False

Stack switching happens during nested interrupt handling.

  • True
  • False
Answer :- 

9. Consider a system having 5 CPUs, 9 processes. The upper bound of the number of processes in the RUNNING state is _____________, and BLOCKED states is __________. (write the option such that the first is the answer for the first blank, and the second is for the second blank)

Answer :- 

10. What are the data structures used to obtain the interrupt handler of an interrupt?

  • IDT alone
  • GDT alone
  • Both IDT and GDT
  • stack
Answer :- For Answers Click Here 
Share This Article
Leave a comment