Deadlock Conditions
Deadlock requires all 4: Mutual exclusion, Hold-and-wait, No preemption, Circular wait
Deadlock Conditions
Four conditions that must ALL be present for a deadlock
📖 Full Lesson →
🎥 Watch Instead
This lesson's animated video hasn't been made yet — check back soon.
Flashcard
🃏 Deadlock Conditions
Deadlock — the four required conditions?
Tap to flip
🃏 Answer
Deadlock requires all 4: Mutual exclusion, Hold-and-wait, No preemption, Circular wait
MMutual exclusion
HHold and wait
NNo preemption
CCircular wait
Tap to flip back
Virtual Memory
Virtual memory: OS swaps pages to disk — programs see more RAM than exists
Virtual Memory
The OS gives programs the illusion of abundant memory
📖 Full Lesson →
🎥 Watch Instead
This lesson's animated video hasn't been made yet — check back soon.
Flashcard
🃏 Virtual Memory
Virtual memory — how does it work?
Tap to flip
🃏 Answer
Virtual memory: OS swaps pages to disk — programs see more RAM than exists
Virtual Memory — OS uses disk as overflow when RAM fills up. Programs see a large contiguous address space. Page fault: needed page not in RAM → load from disk (slow). Paging: fixed-size blocks.
Tap to flip back
Scheduling Algorithms
CPU Scheduling: FCFS (First Come First Served), SJF (Shortest Job First), Round Robin (fixed time quantum), Priority (highest priority runs first)
Scheduling Algorithms
How the OS decides which process gets CPU time
📖 Full Lesson →
🎥 Watch Instead
This lesson's animated video hasn't been made yet — check back soon.
Flashcard
🃏 Scheduling Algorithms
CPU scheduling — the main algorithms?
Tap to flip
🃏 Answer
CPU Scheduling: FCFS (First Come First Served), SJF (Shortest Job First), Round Robin (fixed time quantum), Priority (highest priority runs first)
Scheduling Algorithms — FCFS: first come first serve — simple, long jobs block short ones. SJF: shortest job first — minimizes wait, needs job-length prediction. Round Robin: each gets a fixed time slice — fair. Priority: highest priority runs first.
Tap to flip back
Thrashing
Thrashing: too many processes → constant page swapping → CPU spends all time on I/O, none on work
Thrashing
When virtual memory page swapping overwhelms the CPU
📖 Full Lesson →
🎥 Watch Instead
This lesson's animated video hasn't been made yet — check back soon.
Flashcard
🃏 Thrashing
Thrashing — what causes it?
Tap to flip
🃏 Answer
Thrashing: too many processes → constant page swapping → CPU spends all time on I/O, none on work
Thrashing — Occurs when the total working set of all processes exceeds available RAM. OS spends more time swapping pages than running processes. Solution: reduce multiprogramming degree or add RAM.
Tap to flip back
File Systems
File systems: FAT32 (File Allocation Table 32-bit, simple and compatible), NTFS (New Technology File System, Windows journaling), ext4 (Linux), APFS (Apple File System) (Apple)
File Systems
How operating systems organize and store data on disk
📖 Full Lesson →
🎥 Watch Instead
This lesson's animated video hasn't been made yet — check back soon.
Flashcard
🃏 File Systems
File systems — FAT32, NTFS, ext4 and APFS?
Tap to flip
🃏 Answer
File systems: FAT32 (File Allocation Table 32-bit, simple and compatible), NTFS (New Technology File System, Windows journaling), ext4 (Linux), APFS (Apple File System) (Apple)
File Systems — File system: organizes data on storage devices. FAT32: simple, max 4GB file size, universal compatibility. NTFS: Windows, journaling (recovers from crashes), large files, permissions. ext4: Linux standard, journaling, large file support. Hierarchical structure: root → directories → files. Inodes: metadata about files (not content).
Tap to flip back
Context Switching
Context switch: OS saves current process state, loads another process state — enables multitasking
Context Switching
How the OS rapidly switches between processes to simulate multitasking
📖 Full Lesson →
🎥 Watch Instead
This lesson's animated video hasn't been made yet — check back soon.
Flashcard
🃏 Context Switching
Context switch — what happens?
Tap to flip
🃏 Answer
Context switch: OS saves current process state, loads another process state — enables multitasking
Context Switching — When CPU switches from one process to another: save current process's registers, program counter, and state to PCB (Process Control Block). Load next process's saved state. Context switches are expensive (~microseconds) — too many degrade performance. Threads have lighter context switches than processes.
Tap to flip back
Semaphores and Synchronization
Semaphore: integer variable for synchronization. Mutex (Mutual Exclusion lock, binary semaphore). P() = wait. V() = signal.
Semaphores and Synchronization
How processes coordinate access to shared resources
📖 Full Lesson →
🎥 Watch Instead
This lesson's animated video hasn't been made yet — check back soon.
Flashcard
🃏 Semaphores and Synchronization
Semaphore vs mutex — and P() and V()?
Tap to flip
🃏 Answer
Semaphore: integer variable for synchronization. Mutex (Mutual Exclusion lock, binary semaphore). P() = wait. V() = signal.
Semaphores and Synchronization — Semaphore: integer variable — P() decrements (wait if 0), V() increments (signal). Binary semaphore (mutex): 0 or 1, implements mutual exclusion. Counting semaphore: tracks available resources. Dining philosophers problem: classic deadlock scenario. Monitor: higher-level synchronization construct.
Tap to flip back
Paging
Paging: divide memory into fixed-size pages. Page table maps virtual to physical addresses.
Paging
How virtual memory is divided into manageable chunks
📖 Full Lesson →
🎥 Watch Instead
This lesson's animated video hasn't been made yet — check back soon.
Flashcard
🃏 Paging
Paging — how does it work?
Tap to flip
🃏 Answer
Paging: divide memory into fixed-size pages. Page table maps virtual to physical addresses.
Paging — Page: fixed-size block of virtual memory (typically 4KB). Frame: corresponding physical memory block. Page table: maps virtual page numbers to physical frame numbers. Page fault: accessing page not in RAM → OS loads from disk → slow. Working set: set of pages process needs — keep in RAM to minimize page faults.
Tap to flip back