13 Dec 2019

  • December 13, 2019
  • Amitraj
Demand Paging

-> According to the concept of Virtual Memory, in order to execute some process, only a part of the process needs to be present in the main memory which means that only a few pages will only be present in the main memory at any time.

-> However, deciding, which pages need to be kept in the main memory and which need to be kept in the secondary memory, is going to be difficult because we cannot say in advance that a process will require a particular page at particular time.

-> Therefore, to overcome this problem, there is a concept called Demand Paging is introduced. It suggests keeping all pages of the frames in the secondary memory until they are required. In other words, it says that do not load any page in the main memory until it is required.

-> Whenever any page is referred for the first time in the main memory, then that page will be found in the secondary memory.

-> After that, it may or may not be present in the main memory depending upon the page replacement algorithm which will be covered later in this tutorial.

Related Posts:

  • Thrashing in Operating system | Effect of Thrashing | Techniques to Handle Thrashing Thrashing in Operating system If the page fault and swapping happening very frequently at higher rate, then operating system has to spend more time to swap these pages. This state is called thrashing. Because of this, CPU u… Read More
  • Demand Paging in Operating System Demand Paging -> According to the concept of Virtual Memory, in order to execute some process, only a part of the process needs to be present in the main memory which means that only a few pages will only be present i… Read More
  • Allocation of frames in Operating System Allocation of frames When a page fault occurs, there is a free frame available to store a new page into a frame. While the page swap is taking place, a replacement can be selected, which is written to the disk as the user … Read More
  • Input and Output in Linux Input and Output • The Linux device-oriented file system accesses disk storage through two caches: –> Data is cached in the page cache, which is unified with the virtual memory system –> Metadata is cached in the buf… Read More
  • History of Linux Operating System History of Linux Evolution of Unix -> In 1969, a team of developers of Bell Labs started a project to make a common software for all the computers and named it as 'Unix'. It was simple and elegant, used 'C' language i… Read More

Translate

Popular Posts