Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is different between "pager" and "Lazy swapper"?

I'm reading a book, operating system concepts (written by abraham silberschatz), in chapter 9 virtual memory, there are terms Lazy swapper and pager.

I can't figure out what is different between Lazy swapper and pager.

Swapper is just doing the entire process into memory, whereas lazy swapper is doing swapping a page rather than entire process.

Is it pager?

like image 669
Hong Jun Choi Avatar asked Feb 16 '23 11:02

Hong Jun Choi


1 Answers

A demand paging system is quite similar to a paging system with swapping. When we want to execute a process, we swap it into memory. Rather than swapping the entire process into memory, however, we use a lazy swapper called pager. But both do it in a different way. Swapper Copies all pages related to a whole process(used in earlier days). But Lazy swapper do it Page-by-Page, That's why it is lazy... jokes apart

like image 90
X-code Avatar answered Mar 11 '23 17:03

X-code