Question & Answer: Your heap is 1 MByte. Blocks have a 32-bit header, and are allocated in chunks of 32 bits (for the data portion)…..

Your heap is 1 MByte. Blocks have a 32-bit header, and are allocated in chunks of 32 bits (for the data portion). There is no padding. What is the maximum number of minimum-size blocks that can already be in the heap for malloc (1) to return null? What is the minimum number of such blocks in the heap that can result in malloc(1) returning null? If you need to make any assumptions, state them clearly.

The max is 123 but I’m not sure what the min is? The answer is 1000/12 = 83 for min. But where did 12 come from?

Don't use plagiarized sources. Get Your Custom Essay on
Question & Answer: Your heap is 1 MByte. Blocks have a 32-bit header, and are allocated in chunks of 32 bits (for the data portion)…..
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS $13/PAGE
Order Essay

Expert Answer

 

ANSWER::

Question & Answer: Your heap is 1 MByte. Blocks have a 32-bit header, and are allocated in chunks of 32 bits (for the data portion)..... 1

Still stressed from student homework?
Get quality assistance from academic writers!