InterviewStack.io LogoInterviewStack.io

System Calls & the Kernel Interface Questions

The boundary between user space and the kernel: how programs request privileged services through system calls, the user/kernel mode transition, and the semantics of core POSIX calls such as fork, exec, wait, open, read, write, and stat. Covers syscall numbers, arguments, return values and errno, and how libc wrappers relate to the underlying trap. This is the foundational interface for all systems programming on Unix/Linux.

MediumTechnical
65 practiced

Describe the differences between fork(2), vfork(2), and clone(2) on Linux: copy-on-write semantics after fork, the behavioral and performance differences for vfork, and how clone allows thread-like or namespace behavior. For each primitive, give practical use cases and hazards (e.g. memory doubling, deadlocks, container namespace creation).

MediumTechnical
70 practiced

A worker process keeps being killed by the OOM killer on your Linux host. Explain how setrlimit(2) can be used to constrain memory usage per process and the differences between RLIMIT_AS and RLIMIT_RSS. Discuss consequences of overly strict limits and how you would choose sensible limits for a service while preserving reliability and SLOs.

HardTechnical
49 practiced

Describe how process credentials (real and effective UID/GID) interact with execve(2) and the setuid/setgid bits. Explain the security model for setuid binaries, how interpreters and shebang lines affect setuid behavior, and what operational recommendations you'd make for running third-party binaries that require elevated privileges.

That is every published System Calls & the Kernel Interface question for DevOps Engineer so far. Browse the other topics in this category, or practice this one interactively.