OS conceptual

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/47

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:01 AM on 4/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

48 Terms

1
New cards

Why is linked list allocation bad for random access

Must traverse pointers from beginning to reach a block

2
New cards

Why is linked list allocation unreliable

Broken pointer loses rest of file

3
New cards

Why is indexed allocation better

Direct access to blocks through index

4
New cards

Why is contiguous allocation fast

Block location computed directly using offset

5
New cards

Why is contiguous allocation hard to grow

Needs contiguous free space

6
New cards

Why do flat namespaces cause collisions

All files share one directory

7
New cards

Why does opening a file require multiple disk reads

Each directory in path must be resolved step by step

8
New cards

Why are directories needed

They map human names to file metadata

9
New cards

Why are file systems data structures

They consist of directories inodes blocks and metadata

10
New cards

Why are transactions needed

Prevent inconsistent state from partial updates

11
New cards

What happens before commit on crash

Transaction is rolled back

12
New cards

What happens after commit on crash

Log is replayed to restore changes

13
New cards

Why must commit be atomic

System must clearly know if transaction happened

14
New cards

Why must log be written before data

Ensures recovery information exists before changes

15
New cards

Why is journaling better than fsck

Replays exact operations instead of guessing

16
New cards

Why is logging not enough

Does not prevent concurrent transaction conflicts

17
New cards

Why is locking needed

Prevents transactions from interfering with each other

18
New cards

Difference between consistency and recovery

Consistency is valid state recovery restores it after crash

19
New cards

Difference between durability and consistency

Durability ensures persistence consistency ensures correctness

20
New cards

Why does demand paging improve performance

Avoids loading unused pages and reduces disk I O

21
New cards

Why does locality make paging work

Programs reuse same and nearby data

22
New cards

What triggers a page fault

Access to page not present in memory

23
New cards

What happens during a page fault

OS loads page updates tables and resumes execution

24
New cards

Why are page faults expensive

They may require disk access

25
New cards

Why is TLB needed

Avoids repeated slow page table lookups

26
New cards

What happens on TLB miss

Lookup page table then update TLB

27
New cards

Why can FIFO have Belady anomaly

Ignores usage and may evict useful pages

28
New cards

Why does LRU perform better

Keeps recently used pages in memory

29
New cards

Why does thrashing occur

Working set larger than memory

30
New cards

Why is RAID 0 unsafe

No redundancy so any failure loses data

31
New cards

Why is RAID 1 reliable

Data is duplicated across disks

32
New cards

Why is RAID 1 expensive

Requires double storage space

33
New cards

How does parity allow recovery

Missing data computed using XOR of remaining data

34
New cards

Why is parity disk a bottleneck

All writes must update shared parity

35
New cards

Why are small writes expensive in RAID

Require reading old data and parity then writing both

36
New cards

Why is RAID 5 better than RAID 4

Parity distributed reduces bottleneck

37
New cards

What is cache consistency problem

Different clients may have outdated file copies

38
New cards

How does NFS handle consistency

Frequently checks with server and writes on close

39
New cards

How does AFS handle consistency

Uses cached copy and server invalidation

40
New cards

Why is NFS less scalable

Frequent server communication increases load

41
New cards

Why is AFS more scalable

Less communication with server

42
New cards

What tradeoff does AFS make

Scalability at cost of immediate consistency

43
New cards

Why cannot we have perfect consistency and scalability

Strong consistency requires communication which reduces scalability

44
New cards

Why is FAT32 like linked list allocation

Clusters linked through FAT entries

45
New cards

How does FAT32 read a file

Follow cluster chain from starting cluster to EOF

46
New cards

Why is FAT32 bad for random access

Must traverse cluster chain

47
New cards

Why is FAT pointer corruption dangerous

Breaks rest of file chain

48
New cards

What is first step to read FAT32 file

Find starting cluster from directory entr