InterviewStack.io LogoInterviewStack.io

Operating System Fundamentals Questions

Comprehensive knowledge of operating system concepts and practical administration across Linux, Unix, and Windows platforms. Core theoretical topics include processes and threads, process creation and termination, scheduling and context switching, synchronization and deadlock conditions, system calls, kernel versus user space, interrupt handling, memory management including virtual memory, paging and swapping, and input and output semantics including file descriptors. Practical administration and tooling expectations include file systems and permission models, user and group account management, common system utilities and commands such as grep, find, ps, and top, package management, service and process management, startup and boot processes, environment variables, shell and scripting basics, system monitoring, and performance tuning. Platform specific knowledge should cover Unix and Linux topics such as signals and signal handling, kernel modules, initialization and service management systems, and command line administration, as well as Windows topics such as the registry, service management, event logs, user account control, and graphical and command line administration tools. Security and infrastructure topics include basic system hardening, common misconfigurations, and an understanding of containerization and virtualization at the operating system level. Interview questions may probe conceptual explanations, platform comparisons, troubleshooting scenarios, or hands on problem solving.

HardSystem Design
69 practiced
Design a highly-available architecture for a stateful service on Linux that requires automatic failover with minimal downtime. Discuss how you would use systemd service units (and watchdog), cluster managers (Pacemaker/Corosync), keepalived/VRRP, shared storage solutions (DRBD/NFS), split-brain prevention, fencing/stonith, and health checks. Explain how configuration and deployment updates should be handled safely.
HardTechnical
59 practiced
Explain in detail what happens during a context switch from user space into the kernel and back (registers saved/restored, CR3/TLB behavior, stack transitions). Quantify the types of overhead involved and propose specific strategies to reduce context-switch and syscall overhead for a latency-sensitive service (for example, reduce syscalls with batching, use VDSO, io_uring, CPU affinity, or hugepages).
EasyTechnical
63 practiced
You need to find processes consuming more than 80% CPU, determine which files under /var/log were modified in the last 7 days, and list any processes listening on TCP ports above 1024 on a Linux server. Provide a sequence of commands (using grep, find, ps, top/htop, ss/lsof) to accomplish these tasks and briefly explain why you chose each command and any common pitfalls (e.g., different ps formats or hidden processes).
MediumTechnical
63 practiced
Explain the Completely Fair Scheduler (CFS) in Linux and how it differs from real-time scheduling classes such as SCHED_FIFO and SCHED_RR. How do niceness and ionice affect scheduling, and what commands and precautions would you use to safely promote a process to real-time priority on a production server?
MediumTechnical
81 practiced
Explain how to load, unload, and manage kernel modules on Linux, including how to inspect module dependencies, view parameters, and persist module loading across reboots. If a module fails to load with 'invalid module format' or causes an oops, describe the troubleshooting steps you would take (checking kernel version mismatch, modinfo, dmesg, and rebuilding the module).

Unlock Full Question Bank

Get access to hundreds of Operating System Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.