Computer Science, asked by pamjdv1355, 1 year ago

What is demand paging when do page fault can occur explain various methods of deadlock handling?

Answers

Answered by KomalSrinivas
0

Demand paging is a concept that believes in the simple fact, that pages should be introduced into memory only those times when they needs to get executed and it is not possible to execute them anyway, i.e. manually etc.

So this is a very interesting concept and helps to execute pages. The other term for this is lazy evaluation and it works specifically on those pages that are transferred from the secondary memory to the main memory for execution.

At certain time, while executing, page fault might occur when the particular program needs to access some memory that has not been stored in RAM.

Deadlock handling follows many methods like deadlock detection, deadlock prevention, deadlock avoidance.

Answered by lovingheart
0

Page fault occurs when the data that is requested is not currently available in the RAM. So inturn, the operating system search for the data in the virtual memory and then loads on to the RAM. If the data is not found in the memory then a page error occurs.

There are totally four methods to prevent a deadlock

1. Ignore the problem 2. Detection and recovery 3. Deadlock avoidance

Similar questions