What is thrashing in an operating system, and how does it degrade system performance?
Draft your answer mentally or on paper, then check the points you hit:
The 40 questions, ranked by how many of the surveyed prep sources list each one.
Interview one-liner: Thrashing occurs when an operating system spends significantly more time swapping virtual memory pages than executing useful process instructions.
Interview one-liner: A process is an isolated program instance with its own address space, while a thread is a lightweight execution unit sharing memory inside that process.
Interview one-liner: In demand paging, a page is loaded into physical memory only when a running process references an address on that page and triggers a page fault.
Interview one-liner: A deadlock is a permanent stall where each process in a set holds a resource and waits for another resource held by another process in that set.
Interview one-liner: Virtual memory creates an illusion of a large contiguous address space, allowing programs larger than physical RAM to execute reliably.
Interview one-liner: CPU scheduling chooses which ready process gets the CPU next, balancing throughput, turnaround time, and latency using preemptive or non-preemptive policies.
Interview one-liner: Starvation occurs when a runnable process is indefinitely postponed by higher-priority tasks, and aging prevents this by steadily raising its priority over time.
Interview one-liner: An operating system is system software that manages hardware resources and provides a secure, abstracted platform for user applications to execute.
Interview one-liner: A process is a program in active execution, represented in kernel memory by a Process Control Block containing its complete runtime context.
Interview one-liner: A process moves through New, Ready, Running, Waiting, and Terminated states as the OS allocates CPU time and manages I/O events.
Interview one-liner: The kernel is the one program running at all times on the computer, executing in privileged mode to manage system resources.
Interview one-liner: A context switch saves the CPU register state of a running process and restores another, introducing pure overhead because no user code executes.
Interview one-liner: Deadlock requires four simultaneous Coffman conditions: mutual exclusion, hold and wait, no preemption, and circular wait.
Interview one-liner: A logical address is generated by the CPU during program execution, whereas a physical address identifies an actual hardware location in physical RAM.
Interview one-liner: Internal fragmentation is wasted space inside an allocated memory partition, while external fragmentation is scattered free memory outside allocated blocks.
Interview one-liner: The dual purpose of an operating system is to multiplex hardware resources efficiently and to provide clean, secure abstractions for application programs.
Interview one-liner: A hard real-time OS is needed when a missed deadline is catastrophic, because it guarantees bounded, deterministic response times.
Interview one-liner: A thread is a lightweight execution stream within a process, sharing code, data, and open files while keeping its own stack and registers.
Interview one-liner: Paging splits memory into fixed-size hardware blocks eliminating external fragmentation, whereas segmentation divides memory into variable-size logical units reflecting program structure.
Interview one-liner: Belady's anomaly is the counter-intuitive behavior where increasing physical page frames increases total page faults under FIFO page replacement.
Interview one-liner: RAID combines multiple physical disk drives into a single logical storage array to provide redundancy, enhanced performance, or both.
Interview one-liner: A semaphore is a synchronization variable accessed only through atomic wait() and signal() operations to manage concurrent access to shared resources.
Interview one-liner: In a hard real-time system, missing a deadline results in total system failure, while a soft real-time system tolerates occasional delays with reduced quality.
Interview one-liner: The Banker's algorithm is a deadlock avoidance algorithm that grants resource requests only if the resulting allocation leaves the system in a guaranteed safe state.
Interview one-liner: Spooling buffers data for slow peripheral devices on high-speed disk storage, allowing the CPU to complete processing without blocking.
Interview one-liner: A zombie process has finished executing but retains an entry in the process table until its parent reads its exit status code.
Interview one-liner: Inter-Process Communication provides mechanisms like shared memory, message queues, pipes, and sockets for isolated processes to exchange data and coordinate execution.
Interview one-liner: Monolithic kernels run all OS services in privileged kernel space for raw speed, while microkernels move most services to user space for modularity and fault isolation.
Interview one-liner: A program is a passive executable file stored on disk, whereas a process is an active program instance currently executing in memory with dedicated resources.
Interview one-liner: In preemptive scheduling the OS can forcibly reclaim the CPU from a running process, whereas in non-preemptive scheduling the process controls the CPU until it yields.
Interview one-liner: Round Robin assigns each ready process a fixed time slice in circular order, balancing fairness against context switching overhead.
Interview one-liner: Multithreading improves application responsiveness, enables lightweight resource sharing, lowers context switching overhead, and scales across multiple CPU cores.
Interview one-liner: Paging eliminates external fragmentation by allowing physical memory to be allocated to processes non-contiguously in fixed-size frames.
Interview one-liner: External memory fragmentation occurs when total free memory is sufficient to satisfy a request, but the memory is split into non-contiguous blocks.
Interview one-liner: Optimal page replacement evicts the page unreferenced for the longest future time, while LRU uses past references to approximate this ideal.
Interview one-liner: A system call provides the essential programmatic interface allowing user-space programs to safely request privileged services from the operating system kernel.
Interview one-liner: A socket is an endpoint for bidirectional network communication uniquely identified by the combination of an IP address and a port number.
Interview one-liner: A mutex is a locking mechanism owned solely by the thread that locked it, whereas a semaphore is a signaling mechanism without ownership.
Interview one-liner: A critical section is a code block accessing shared mutable data that must execute with mutual exclusion to prevent race conditions.
Interview one-liner: Dual-mode operation protects the system by restricting privileged CPU instructions and direct hardware access exclusively to kernel mode.
Completed
0 / 40
Due today
0
Subject
Operating Systems
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit:
Draft your answer mentally or on paper, then check the points you hit: