Flashcards · Operating Systems · Free
Operating Systems flashcards, generated for you.
Example Operating Systems study cards to learn from right now — then generate a full set from your own notes (plus a practice quiz) and export to Quizlet or Anki. Free, no account needed.
Example Operating Systems flashcards
What is an operating system?
Software that manages hardware resources and provides services to applications. Acts as intermediary between users/programs and physical hardware (CPU, memory, disk, I/O devices).
What is the difference between preemptive and non-preemptive scheduling?
Preemptive: OS can interrupt a running process and switch to another (context switching). Non-preemptive: process runs until it yields control. Preemptive ensures fairness but costs more in context-switch overhead.
What is a process vs. a thread?
Process: independent program instance with own memory space, registers, file descriptors. Thread: lightweight execution unit sharing same memory space within a process. Threads are faster to create/switch but require synchronization.
Define context switching and its trade-off.
Act of saving one process state and loading another's. Enables multitasking but incurs overhead (cache misses, TLB flushes, register saves). More frequent switching = responsive system but lower throughput.
What is the difference between logical and physical addresses?
Logical (virtual) address: generated by CPU, relative to process. Physical address: actual RAM location. Memory Management Unit (MMU) translates logical to physical using page tables. Enables protection and abstraction.
What is thrashing in virtual memory?
Excessive page faults causing OS to spend more time swapping pages than executing processes. Occurs when working set exceeds physical memory. Severely degrades performance. Prevented by load control or larger page frames.
Explain the trade-off between page size.
Larger pages: fewer page faults, smaller page tables, less memory overhead. Smaller pages: better memory utilization, less fragmentation. Sweet spot typically 4KB–16KB; larger wastes internal fragmentation.
What is a race condition and how does mutual exclusion prevent it?
Race condition: multiple processes access shared resource concurrently, outcome depends on timing. Mutual exclusion (locks, semaphores, monitors) ensures only one process accesses critical section at a time, preventing corruption but risking deadlock.
Define deadlock and the four necessary conditions.
Circular wait where processes hold resources and wait for others. Four conditions: mutual exclusion, hold-and-wait, no preemption, circular wait. Break any one to prevent. Trade-off: prevention may reduce concurrency or require preemption overhead.
What is the working set model and why does it matter?
Set of pages a process actively uses in a time window. If working set fits in physical memory, few page faults occur. If not, thrashing results. Key insight: admission control should ensure sum of working sets ≤ RAM to maintain system stability.
Make your own Operating Systems study set
Flashcards for related topics
Studying Operating Systems to build with AI? MindloomHQ turns it into real skills — structured courses, agent projects, and certificates.
Explore MindloomHQ →