在内存的基本分配方法中会形成内部碎片和外部碎片。请问什么是内部碎片( Internal Fragmentation )?什么是外部碎片( External Fragmentation )?外部碎片问题如何解决或补救?
4. 答案:
Internal Fragmentation – allocated memory may be slightly larger than requested memory; this size difference is memory internal to a partition, but not being used.
External Fragmentation – total memory space exists to satisfy a request, but it is not contiguous.
Reduce external fragmentation by compaction : Shuffle memory contents to place all free memory together in one large block.
评分标准: 解释概念4分,外部碎片解决方法1分。