PrepAway - Latest Free Exam Questions & Answers

Which of the following is not a responsibility of the memory manager?

Which of the following is not a responsibility of the memory manager?

PrepAway - Latest Free Exam Questions & Answers

A.
Use complex controls to ensure integrity and confidentiality when processes need to use the same shared memory segments.

B.
Limit processes to interact only with the memory segments assigned to them.

C.
Swap contents from RAM to the hard drive as needed.

D.
Run an algorithm to identify unused committed memory and inform the operating system that the memory is available.

Explanation:
D: This answer describes the function of a garbage collector. A garbage collector is a countermeasure against memory leaks. It is software that runs an algorithm to
identify unused committed memory and then tells the operating system to mark that memory as “available.” Different types of garbage collectors work with different
operating systems, programming languages, and algorithms. The portion of the operating system that keeps track of how different types of memory are used is called
the memory manager. Its jobs are to allocate and deallocate different memory segments, enforce access control to ensure that processes are interacting only with their
own memory segments, and swap memory contents from RAM to the hard drive. The memory manager has five basic responsibilities: relocation, protection, sharing,
local organization, and physical organization.
A is incorrect because as part of its sharing responsibilities, the memory manager uses complex controls to ensure integrity and confidentiality when processes need
to use the same shared memory segments. This is critical to protecting memory and the data in it, since two or more processes can share access to the same segment
with potentially different access rights. The memory manager is also responsible for allowing many users with different levels of access to interact with the same
application running in one memory segment.
B is incorrect because the memory manager is responsible for limiting process interactions to only those memory segments assigned to them. This responsibility falls
under protection and helps prevent processes from gaining access to unpermitted segments. Another protection responsibility of the memory manager is to provide
access control to memory segments.
C is incorrect because swapping contents from RAM to the hard drive as needed is a responsibility of the memory manager that falls under relocation. When RAM
and secondary storage are combined, the result is virtual memory. The system uses hard drive space to extend its RAM memory space. Another relocation
responsibility is to provide pointers for applications if their instructions and memory segment have been moved to a different location in main memory.

3 Comments on “Which of the following is not a responsibility of the memory manager?


Leave a Reply