What Is The Difference Between Pages And Blocks?

Pages and Blocks both are storage units of Data in Operating system. However, both are important for the operating system as both serve their own purposes. Below are some of the differences between the two.

What Is a Page?

Fixed length block of contiguous memory is called as a Page, and sole entry in page table defines this. In VM Operating System it’s the data’s smallest unit that manages memory by the help of Page OS perform both function reading and writing of a file.

What Is a Block?

While on Data storage devices a group of records is known as Block which operates like a unit. Pages have the fixed size and most common is 4-2k while disk read or write the data in 512B blocks. Thus the main points to keep in mind about the pages are that they are fixed in size and they are also virtual blocks. Pages are utilized in light of the fact that they make handling less demanding when there are numerous storage devices, since every device might support an alternate block size. With pages the framework of OS can manage only a settled size page, instead of attempt to make sense of how to manage blocks that are all diverse sizes. In this way, pages go about as kind of a facilitator between OS and HDW drivers, which make an interpretation of the pages to the proper blocks.

Instead Of Using Blocks, Can Pages Be Used?

Pages are often easier to use because they make the whole processing easier even when there are other storage devices available, this is because every device supports a block size which is different from another. When it is about pages, the operating system only deals with a fixed size of the page, instead of trying to know about how to work with different sized blocks. Pages work as a mediator between the operating systems and the hardware drivers that translate all the pages for their appropriate blocks. However, both the pages and the blocks are important units of the data storage.

Leave a Reply