What are system calls, user mode and kernel mode?

2 stars Asked often.

In one or two sentences
A system call is how a user program asks the kernel for something such as a file or the network, through a defined entry point. The CPU moves from user mode to kernel mode while it runs.

Think of your own answer first

Say it out loud, or type it below. What you type never leaves this device.

Follow-up questions

These are likely next questions from an interviewer. Think of your answer first, then press the button.

  1. 1 / 3

    How do an interrupt and a system call differ?

Sources checked