OS Memory Management Interview Questions


Dear Reader, Below are four practice interview questions dealing with memory management related concepts.

Question 1

What DAT refers to in memory management by an operating system supporting virtual memory ?

Answer :

DAT refers to Dynamic address translation, which is the process of translating a virtual address to real address. This is a memory management task in operating systems supporting virtual memory.

Question 2
Consider a program using large amount of resources which forces operating system to perform excessive paging. What this condition could lead to ?

Answer :

Thrashing is a possible consequence of excessive paging. This will slow down the system enormously. In extreme cases system comes to a halt without useful work.

Question 3

How to solve thrashing at a high level and proactively?

Answer :

Thrashing can be solved by one or combination of the below :

1) Allocating the memory required by the program before executing.
2) If sufficient memory is not available, effective replacement algorithms for memory allocating should be used
3) One more way is to reduce the number of programs running currently.
4) From developers point of view, Large programs in memory can be replaced by small programs.

Question 4

What is called cannibalizing with respect to memory management in OS ?

Answer :

The process of replacing a page from virtual or secondary storage memory to main memory is called cannibalizing

Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post