Interview Questions on OS - Virtual Memory

1. What is virtual memory?

Virtual memory is memory management technic which is used to execute the process which has more than actual memory size.

2. What is Demand Paging?

It is memory management technique used in virtual memory such that page will not load into the memory until it is needed.

3. What are all page replacement algorithms?

1. FIFO(First in First out)
2. Optimal Page Replacement
3. LRU(Least-Recently-used)

4. Which page replacement algorithm will have less page fault rate?

Optimal Page Replacement

5. What is thrashing?

It is situation that CPU spends more time on paging than executing.