in Operating System retagged by
666 views
3 votes
3 votes

Which of the following heap memory allocation strategies is likely to exploit spatial locality of memory accesses in a program, the most?

  1. Best Fit
  2. First Fit
  3. Next Fit
  4. Last Fit
in Operating System retagged by
by
666 views

2 Answers

2 votes
2 votes
Option b) First Fit
1 vote
1 vote
Option $C$ Next Fit algo seems to be the right choice since we want to maximize the use of the spatial locality concept.

In Next Fit Algo we start searching from the last filled block, which increases the chances of finding a suitable block near the previously allocated block.

Therefore Option $C$ is correct.
edited by
by

Related questions