CST 334 - Week 3

This week I learned a lot about memory virtualization. The reading's covered the topics on virtual addresses, address translation, segmentation, as well allocating and managing memory. I also learned a lot from the programming assignment this week where we wrote a memory allocation library and relevant functions. Specifically we wrote mem_alloc() and mem_free() which are similar to malloc() and free() in the C library. Part of this assignment included writing functions that coalesced nodes as well as split them. The readings for this week helped with this assignment, specifically Chapter 14 which discussed memory in greater detail, including types of memory, the malloc() and free() call, allocating memory and memory leaks. Additionally, this section of the reading discussed calloc() which allocates memory and zeroes it before returning it, realloc() which makes a new larger region of memory, copies the old region into it, and returns the pointer to a new region. Finally, part of this week's readings included information on shell scripting practices, including the following tools: regex, grep, sed and awk. 

Comments

Popular Posts