Memory Management
Chapter 11:-
1.Memory Hierarchies start from the very top known as the CPU registers. The primary executable memory would be the L1 and L2 caches followed by the system memory.These memory are fast in access to the CPU.Then come the larger storage space which is the secondary memory known as the optical memory, Rotating Magnetic Memory ( like the hard drive which is used for virtual memory at times ) and the sequential Accessed Memory
2. Best Fit is a strategy to allocate the smallest block of unallocated memory to a process of its size. Worst Fit is the allocation of a process to the largest list of unallocated block of memory. First Fit finds the first block that is suitable for the process and place it there rather then waste time searching for the suitable size block for it.
3. Swapping in memory is used when there is only one single thread per process. Optimizes performance by removing process from primary memory when its thread is block , deallocating the memory , allocating to other processes. Then it reload the swapped-out process when its thread returns to ready state.