Answer to Question 3 -- 9 points
- Thrashing occurs when the sum of the sizes of the working sets of
all resident processes is larger than the size of physical memory;
or when the amount of memory allocated to a process is smaller than its
working set.
- Belady's anomaly pertains to page replacement algorithms. A
replacement algorithm exhibits Belady's anomaly if there exists a
sequence of page accesses that generates more page faults when
X pages are allocated for the process than when Y pages
are allocated, and X > Y.
- A safe state is one in which there exists an ordering of processes,
p1 through pn such that p1 can allocate all of its
resources and complete, then p2 can allocate all of its resources
and complete, and so on until all processes are complete.
If a system is always in a safe state, then it cannot deadlock.