GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2024 set2

GATE 2024 set2 · CS · MSQ · 1 mark · Operating System › Processes & Threads

GATE 2024 set2 Computer Science and Information Technology question: Consider a process P running on a CPU. Which one or more of the following events will…

Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving to a non-running state (e.g., ready, blocked)?

  1. (A)

    P makes a blocking system call to read a block of data from the disk

  2. (B)

    P tries to access a page that is in the swap space, triggering a page fault

  3. (C)

    An interrupt is raised by the disk to deliver data requested by some other process

  4. (D)

    A timer interrupt is raised by the hardware

Show answer

Official answer: A,B

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion