Operating System Fundamentals Flashcards
21 cards from real ICT practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 20 Operating System Fundamentals flashcards as text
Which scheduling algorithm can lead to starvation of low-priority processes?
Answer: Priority Scheduling
Priority Scheduling can starve low-priority processes if higher-priority processes continuously arrive.
What is a 'race condition' in operating systems?
Answer: An outcome that depends on the unpredictable sequence of thread execution
A race condition occurs when system behavior depends on the relative timing of events such as thread execution order.
Which of the following best describes a 'semaphore' in OS context?
Answer: A synchronization variable used to control access to shared resources
A semaphore is an integer variable used to solve critical section problems and synchronize concurrent processes.
What is the purpose of the Translation Lookaside Buffer (TLB)?
Answer: To cache recent virtual-to-physical address translations
The TLB is a hardware cache that speeds up virtual address translation by storing recent page table entries.
In a multi-threaded process, what do threads share?
Answer: Code, data, and OS resources like open files
Threads within the same process share the code section, data section, and OS resources, but each has its own stack and registers.
What does the 'working set' model in virtual memory refer to?
Answer: The set of pages a process is actively using in a time window
The working set model tracks the pages a process has referenced recently to predict what pages it will need.
Which condition is NOT required for deadlock to occur?
Answer: Preemption
Deadlock requires mutual exclusion, hold and wait, no preemption, and circular wait — preemption prevents deadlock, not causes it.
What is 'thrashing' in an operating system?
Answer: A state where the OS spends more time paging than executing processes
Thrashing occurs when a system has too many processes competing for too few memory frames, causing constant page faults.
What is the main difference between a hard link and a soft (symbolic) link?
Answer: Hard links point to the inode; soft links point to the filename path
A hard link directly references the file's inode, while a symbolic link stores the path to another file name.
Which OS component is responsible for translating high-level I/O calls into device-specific operations?
Answer: Device driver
Device drivers provide an abstraction layer that translates generic OS I/O requests into hardware-specific commands.
In the context of CPU scheduling, what is 'aging'?
Answer: Gradually increasing the priority of waiting processes to prevent starvation
Aging gradually increases the priority of processes that have been waiting a long time, preventing starvation.
What does 'copy-on-write' (COW) enable in process forking?
Answer: Parent and child share memory pages until one modifies them
Copy-on-write defers page copying until either the parent or child process actually modifies a shared page.
Which RAID level provides both striping and mirroring?
Answer: RAID 10
RAID 10 combines striping (RAID 0) for performance and mirroring (RAID 1) for redundancy.
What is the role of the 'inode' in a Unix-like file system?
Answer: It contains metadata about a file such as permissions, size, and disk block locations
An inode stores file metadata (permissions, timestamps, size, block pointers) but not the file name or content.
What distinguishes a microkernel architecture from a monolithic kernel?
Answer: Microkernels keep only essential functions in kernel space and run services in user space
Microkernels minimize the kernel by running services like file systems and drivers in user space, improving modularity.
What happens during a context switch?
Answer: The CPU saves the current process state and loads the state of the next scheduled process
A context switch saves the PCB of the running process and restores the PCB of the next process to run.
Which page replacement algorithm has the lowest page fault rate theoretically?
Answer: Optimal (OPT)
The Optimal algorithm replaces the page that will not be used for the longest future time, minimizing page faults.
In Unix, what does the 'fork()' system call return to the parent process?
Answer: The PID of the child process
fork() returns the child's PID to the parent, and 0 to the child — allowing each to identify its role.
What is the purpose of a 'mutex' (mutual exclusion lock)?
Answer: To ensure only one thread accesses a critical section at a time
A mutex ensures that only one thread can hold the lock and execute within the critical section at any given time.
Which of the following is an example of non-preemptive CPU scheduling?
Answer: First-Come First-Served (FCFS)
FCFS is non-preemptive because once a process starts executing, it runs to completion or until it voluntarily yields.
Written and edited by Nathan Beja, founder of Practice Test Geeks, with AI assistance. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Editorial policy