3rd week CST 334

 This week's material is slightly biased towards Address Spaces. I understood the three goals of Address spaces which are Transparency, Efficiency, and Protection and the problems with it and the solution to it currently which is virtual memory. In the second lecture there is dynamically allocated memory which provides memory to some process and when that process is completed, the memory is released. In some languages like Java, memory deallocation is automatically performed by a facility known as garbage collection. In c, memory must be manually deallocated by the programmer using the free() facility. Address translation is the foundation of virtual memory systems that convert virtual addresses provided by programs into physical addresses in memory. This process typically takes the assistance of hardware through a Memory Management Unit (MMU) that performs translations through page tables or segment tables. Base and bounds registers provide a simple protection mechanism by defining the valid memory range for a process. The base register stores the start physical address of the process memory area, while the bounds register defines the size limit. Segmentation provides a logical means of organizing memory wherein an address space of a program is divided into discrete segments such as code, data, heap, and stack. Free space management becomes a key activity in dynamic memory allocation schemes where the OS must maintain a record of free blocks of memory and allocate them optimally. The three algorithms most widely used are first-fit, which is fast, best-fit whereby it is trying to preserve large chunks, and worst-fit where it avoids fragmentation. I struggled in the virtual memory lab where I was struggling to find the segment name and the physical address. 

Comments

Popular posts from this blog

week 5 CS online

3rd week at CSUMB Computer Science Online

2nd week CST 338