The GATE Grind

GATE 2023 CS – Question 23

Operating System · System Calls, Processes, Threads and IPC · 1 mark · Multiple select

Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?

  1. Function Call
  2. malloc Call
  3. Page Fault
  4. System Call

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (C) Page Fault; (D) System Call

Explanation

A system call (trap) and a page fault (exception) always switch to kernel mode. An ordinary function call or malloc may be served entirely in user space.

More System Calls, Processes, Threads and IPC questions

All System Calls, Processes, Threads and IPC questions →