The operating system performs three key memory management tasks: keeping track of which parts of memory are in use, deciding which processes get loaded into memory when space frees up, and allocating and freeing memory as needed. It monitors memory usage, selects which programs run when based on available resources, and controls how memory is used by processes.