Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Fragmentation, coalescing of free blocks?

También llamado: internal fragmentation · external fragmentation · coalescing of free blocks

Definition 9.2 University Computer Science — Year 3 · Capítulo 9 — Memory Management and Garbage Collection

Internal fragmentation is memory inside used blocks that the program did not ask for: tags and rounding. External fragmentation is free memory split into blocks too small to serve a request, although their total would; we measure it as 1−largest free block/total free1 - \text{largest free block}/\text{total free}. Coalescing of free blocks merges a freed block with the free blocks next to it in memory, so that no two free blocks touch.

Freeing the middle block of 96 bytes. Its neighbours on both sides are free: the footer just before it gives the start of the block of 64, and its own size gives the header of the block of 128. The three become one block of 288 bytes; the grey boundary tags at its two ends are rewritten, the ones in between are simply forgotten.
Freeing the middle block of 96 bytes. Its neighbours on both sides are free: the footer just before it gives the start of the block of 64, and its own size gives the header of the block of 128. The three become one block of 288 bytes; the grey boundary tags at its two ends are rewritten, the ones in between are simply forgotten.
Leer en el capítulo →