What is responsible for managing memory?

operating system