Question: Please help with the following Memory Question!!! Thanks . QUESTION 1 Consider the heap below where the three free space is annotated with their size

Please help with the following Memory Question!!!

Thanks

. Please help with the following Memory Question!!! Thanks . QUESTION 1 Consider

the heap below where the three free space is annotated with their

size (in decimal). xxxxxx sinn :: : 100 xxxxx sinn :: xxxxxx

sinn : : xxxxxxxx Suppose we have the following malloc calls: malloc

0) ; malloc (100) ; There are a number of ways to

QUESTION 1 Consider the heap below where the three free space is annotated with their size (in decimal). xxxxxx sinn :: : 100 xxxxx sinn :: xxxxxx sinn : : xxxxxxxx Suppose we have the following malloc calls: malloc 0) ; malloc (100) ; There are a number of ways to choose where to allocate space for a given malloc call. Consider first-fit and best-fit schemes, what would happen for these two mallocs on the above heap for each of thse schemes. O Both schemes would fail be unable to allocate for both mallocs. O Best-fit would fail (be unable to perform both allocations) and first-fit would succeed O First-fit would fail (be unable to perform both allocations) and best-fit would succeed OBoth schemes would succeed QUESTION 2 This question uses the same starting heap as the previous question but considers a different sequence of malloc calls What would be the results under the two different schemes first-fit and best-fit? O Both schemes would succeed Best-fit would succeed and first fit would fail First-fit would sucoeed and best-fit would fail O Both schemes would fail

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!