This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: There is enough information in the headers to iterate over the end of the heap. Verify that the sizes and flags in header and footer match. Print also the blocks. Add an extra flag value to differentiate Gaps in the heap from allocated and free blocks. Also you may write a function printFreeBlocks() that iterates over all lists and Heap Check Start of Heap End of Heap Footer4/Hdr5 Footer3/Hdr4 Footer2/Hdr3 Footer1/Hdr2 Footer0/Hdr1 Gap...
View Full Document
This note was uploaded on 01/30/2012 for the course CS 354 taught by Professor Staff during the Fall '08 term at Purdue University-West Lafayette.
- Fall '08
- Operating Systems