Machine-translated by Google. Questions are authored in English.
Top

Discussion

External fragmentation of the heap means that ________.

  • A.the heap has been exhausted completely
  • B.enough total free memory exists but not as one contiguous block
  • C.each allocated block wastes a few unused bytes at its end
  • D.the stack has grown into the heap

Answer: B

Correct answer: enough total free memory exists but not as one contiguous block

Repeated allocation and freeing of blocks of differing sizes leaves free space scattered between live blocks. A request may then fail even though the total free space would suffice, because no single gap is large enough.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.