0
0
Operating Systemsknowledge~20 mins

Thrashing and working set model in Operating Systems - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Memory Mastery: Thrashing & Working Set
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Thrashing in Operating Systems

What is the primary cause of thrashing in an operating system?

AThe system has too many processes competing for limited physical memory, causing excessive paging.
BThe system has too much free memory and is not using it efficiently.
CThe disk is malfunctioning and cannot read data properly.
DThe CPU is idle because there are no processes to execute.
Attempts:
2 left
💡 Hint

Think about what happens when memory is overused and the system spends more time swapping pages than executing processes.

📋 Factual
intermediate
2:00remaining
Working Set Model Definition

Which of the following best describes the working set model in operating systems?

AIt measures the CPU time used by a process to decide its priority.
BIt counts the total number of pages in the system regardless of process activity.
CIt tracks the set of pages a process has referenced in the last fixed number of page references to estimate its current memory needs.
DIt records the number of processes waiting in the ready queue.
Attempts:
2 left
💡 Hint

Consider how the model helps decide how much memory a process needs based on recent activity.

🔍 Analysis
advanced
2:00remaining
Analyzing Effects of Working Set Size

If a process's working set size suddenly increases beyond the available physical memory, what is the most likely immediate effect on system performance?

AThe CPU will switch to idle mode to save power.
BThe system will experience thrashing, leading to a significant slowdown.
CThe process will complete faster because it uses more memory.
DThe system will automatically increase physical memory to accommodate the process.
Attempts:
2 left
💡 Hint

Think about what happens when memory demand exceeds supply suddenly.

Comparison
advanced
2:00remaining
Comparing Local and Global Page Replacement

How does the working set model influence the choice between local and global page replacement policies?

AThe working set model forces the system to use FIFO page replacement.
BThe working set model requires global replacement to share pages among all processes equally.
CThe working set model ignores page replacement policies entirely.
DThe working set model supports local replacement to keep a process's pages in memory, reducing thrashing.
Attempts:
2 left
💡 Hint

Consider how keeping a process's recent pages in memory affects performance.

Reasoning
expert
2:00remaining
Predicting System Behavior with Working Set Changes

Consider a system using the working set model for memory management. If multiple processes simultaneously increase their working set sizes, what is the most likely system-wide consequence?

AThe system will likely enter thrashing, as total memory demand exceeds physical memory.
BThe system will pause all processes until memory is freed.
CThe CPU will allocate more time slices to each process to handle the increased memory needs.
DThe system will automatically reduce the working set sizes to prevent thrashing.
Attempts:
2 left
💡 Hint

Think about what happens when many processes need more memory than the system has.