COMP2310 : Malloc | Systems, Networks, and Concurrency - Report Writing - IT Computer Science Assignment Help

Download Solution Order New Solution

Assignment Task

Tasks

Your task is to implement malloc (memory allocator) and include in your implementation the various requirements and optimizations discussed above. Broadly, your coding tasks are three-fold.

 

Allocation

  1. Calculate the required block size.
  2. Find the appropriate free list to look for a block to allocate.
  3. Depending on the size of the block, either allocate the full block or split the block and allocate the right (higher in memory) portion to the user.
  4. When allocating a block, update its allocation status.
  5. Finally, return the user a pointer to the data field of the header.

 

Deallocation (Freeing)

  1. Free is called on the same pointer that malloc returned, which means we must calculate the location of the header by pointer arithmetic.
  2. Once we have the block’s header freed, we must calculate the locations of its right and left neighbors, using pointer arithmetic and the block’s size fields.
  3. Based on the allocation status of the neighboring blocks, we must either insert the block or coalesce it with one or both of the neighboring blocks.

 

Report

You must submit a report (maximum of two pages) along with your malloc implementation. The report consists of the following sections.

  • Describe your implementation of explicit free list, fence posts, and constant time coalescing. Briefly mention key data structures and function names.
  • Describe the optimizations you have attempted in your implementation of malloc.
  • If you have done quantitatively analyzed the placement policies, include any graphs and tables.
  • Discuss two implementation challenges you encountered in your implementation of malloc.
  • Discuss two key observations from testing and benchmarking your malloc implementation. Did something break? Did you end up fixing some stuff after testing and benchmarking? What did not work?

 

This COMP2310–IT Computer Science Assignment has been solved by our IT Computer Science Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing Style. Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered.

You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turn tin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.