GATE CS 2023 | Question 23

Operating Systems › Introduction & Process Management · MSQ · 1 mark · Answer: C, D

  1. Question 23Operating Systemsmsq1 mark
    Which guarantee a transition from user mode to kernel mode?
    • A.
      Function Call
    • B.
      malloc Call
    • C.
      Page Fault
      ✓
    • D.
      System Call
      ✓

    Answer: C, D

    Solution

    Answer: (C) and (D) A page fault is a trap handled by the kernel -> always enters kernel mode (C). A system call explicitly traps to the kernel (D). An ordinary function call stays in user mode (A); malloc is a library routine that usually runs in user space and only sometimes makes a system call, so it does not always transition (B).

More GATE PYQ on Introduction & Process Management

All GATE CS Operating Systems PYQ →

Attempt GATE CS 2023 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →