Quiz Space

Operating Systems · Quiz 2 · 4 Aug 2024 · May 2024 term

Question 8: What is the correct sequence of tasks that takes place as…

Question 8

+2 marksOne correct option

What is the correct sequence of tasks that takes place as part of software interrupt handling? (i) Execute the software interrupt handler
(ii) Save the current CPU state
(iii) Invoke the kernel scheduler if needed
(iv) Restore the CPU state and resume execution

  1. A

    (i) → (ii) → (iii) → (iv)

  2. B

    (iii) → (i) → (ii) → (iv)

  3. C

    (ii) → (iii) → (i) → (iv)

  4. D

    (ii) → (i) → (iii) → (iv)

Show answer

Correct answer

  • D

    (ii) → (i) → (iii) → (iv)

Question 8 of 18 in the IIT Madras BS Operating Systems (Operating Systems) Quiz 2 paper sat on 4 Aug 2024, in the May 2024 term (IIT M IMPROVEMENT AN EXAM QIM4 4 Aug 2024). It carries 2 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2Figure question
  3. Q3Figure question
  4. Q4Consider the following code snippet from Bakery Algorithm. critical section Considering there are 5 processes, and init…
  5. Q5In which scenario is the average response time for FCFS the same as for SJF?
  6. Q6Figure question
  7. Q7Identify the correct system call that should be used at LINE-1 to execute the ls command in the following code:
  8. Q9State True or False\ SJF scheduling can lead to starvation of longer jobs if shorter jobs keep arriving.
  9. Q10State True or False\ SJF can provide a better average response time than FCFS for a set of jobs with varying lengths.
  10. Q11Figure question
  11. Q12Which of the following are scheduling criteria in an operating system?
  12. Q13Figure question
  13. Q14Assuming context switches can occur at any time during the execution of the following code snippet, balance is a shared…
  14. Q15Consider the following scenario where two processes are sharing a common variable. Global setup Process 1 Process 2 Whi…
  15. Q16Assume that two processes P3 and P4 are sharing a resource. If P3 is never able to enter its critical section because P…
  16. Q17Given the hexadecimal view of the first few bytes of different files, identify the executable file (ELF file) from the …
  17. Q18Figure question