Topic: Operating Systems
Which of the following heap memory allocation strategies is likely to exploit spatial locality of memory accesses in a program, the most?
- A. Best Fit
- B. First Fit
- C. Next Fit
- D. Last Fit
Answer: C. Next Fit
Explanation: Next Fit allocation begins searching from the point of the last allocation. This clusters contiguous memory allocations together in memory over time, maximizing spatial locality.