InterviewStack.io LogoInterviewStack.io

Kernel Architecture & OS Internals Questions

How an operating system kernel is structured and what it is responsible for: monolithic vs. microkernel designs, the role of kernel subsystems (scheduler, memory manager, VFS, drivers), kernel vs. user space, and the boot/initialization path. Includes how kernel modules and device drivers extend the kernel and how the kernel mediates access to hardware.

HardTechnical
63 practiced

Describe how hardware interrupts are handled by an operating system. Explain the flow from IRQ to interrupt handler, the concepts of interrupt context vs process context, and kernel mechanisms like softirqs, tasklets, and threaded IRQs used to defer work safely. Discuss performance and latency trade-offs.

MediumTechnical
79 practiced

Write a POSIX-compliant shell script (bash) that atomically updates /etc/myapp/config.yaml: it should validate the new config with a provided validation command, create a timestamped backup of the current file, and replace the config only if validation succeeds. Describe how you avoid race conditions and partial updates.

MediumTechnical
76 practiced

Explain how to configure and use Linux capabilities to run network-facing services without full root privileges. Provide an example command to give a binary the ability to bind to low-numbered ports without being root, and discuss security implications.

MediumTechnical
80 practiced

Compare threads and processes on Linux from an implementation perspective: address space layout, how clone/fork work, how signals are delivered to threads, and how schedulers treat them. Explain the cost of fork() in modern Linux (copy-on-write) and when vfork() or posix_spawn are appropriate.

HardTechnical
90 practiced

Describe at a high level how to write a Linux kernel module that registers a character device. Include the steps to allocate device numbers, create a device file (/dev/mychardev), implement file_operations open/read/write/release, and load/unload the module safely. Mention common pitfalls for memory and concurrency in kernel modules.

Unlock Full Question Bank

Get access to all Kernel Architecture & OS Internals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.