Monday, July 8, 2024

Operating Systems: Week 3 - Memory Virtualization Intro

This week was all about memory and how an operating system manages the physical memory to share (virtualize) between itself and all the applications a user might want to run.  Also how a programmer's can interact with and use memory, and how their choices can affect the operating system.  We learned about memory allocation interfaces in UNIX systems, calls like malloc to allocation memory of a certain size, free to heap memory no longer needed.  I learned about how the operation system uses address translation to help manage each individual process's memory space, ensuring each process only access their correctly memory space.  I learned about techniques to better help manage allocation and deallocation of memory in an efficient manger to help minimize things like fragmentation.  In covering segmentation, I learned how it's possible for programs to share certain memory segments, say if they both load the same support library, via the use of the hardware protection bit.  Basically a few bits are added per segment, informing whether or not a program can access said segment.

I also learned about tools like regex, grep, sed, and awk. These tools help build shell scripts, taking the output from one process and modifying it and allowing us to use it as input to another process.   

0 comments:

Post a Comment