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.

HardTechnical
76 practiced
Describe virtual memory internals: page tables, Translation Lookaside Buffer (TLB), multi-level page table walks, demand paging, page faults, and common page replacement algorithm approximations (LRU, clock). Explain how hugepages and transparent hugepages affect TLB pressure and performance; when would you enable hugepages for database workloads and what trade-offs should you consider?
HardTechnical
64 practiced
A high-performance network server displays high irq and softirq CPU usage concentrated on a few cores, degrading throughput. Explain how interrupts are delivered and processed, how to analyze irq/softirq distribution (for example using /proc/interrupts, ethtool -S, and irqbalance), and propose tuning strategies such as IRQ affinity, device queue tuning (RPS/XPS), and CPU isolation to improve throughput and reduce latency.
EasyTechnical
76 practiced
Describe how you would use common Linux utilities to diagnose a slow server: ps, top/htop, free, vmstat, iostat, df, du, lsof and grep. For each utility give a short example command and explain which symptom it helps identify (high CPU, memory pressure, I/O wait, disk full, open file handles, etc.). Also mention when a tool is preferable in production because of low overhead.
MediumTechnical
69 practiced
You are given a Linux server where a legacy daemon exits with errno 13 (Permission denied) when attempting to write to a socket. Describe how you would use strace to trace system calls and locate the failing syscall. Include the exact strace flags you would use to follow forks, capture networking-related syscalls, and reduce noise. Also mention the equivalent tools/approach for tracing syscall-like behavior on Windows.
MediumTechnical
58 practiced
On a RHEL/CentOS server, Apache is blocked from accessing a directory and you see AVC denials in /var/log/audit/audit.log. Explain how SELinux enforces access controls, how to interpret AVC messages, and the safe steps to create a minimal policy to allow the access (using audit2allow). Describe alternatives to permanently changing enforcement mode and how AppArmor on Ubuntu provides similar protection.

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.