{"id":392,"date":"2024-06-28T13:04:54","date_gmt":"2024-06-28T13:04:54","guid":{"rendered":"https:\/\/study.madeeasy.in\/?p=392"},"modified":"2025-07-16T14:44:29","modified_gmt":"2025-07-16T09:14:29","slug":"what-is-paging-in-os-operating-system","status":"publish","type":"post","link":"https:\/\/www.madeeasy.in\/study\/cs-it\/operating-system\/what-is-paging-in-os-operating-system","title":{"rendered":"What is paging?"},"content":{"rendered":"\r\n<p style=\"text-align: justify;\">Paging is static memory allocation technique that permits the physical address space of a process to be non contiguous. The technique of mapping CPU generated logical address to physical address is called as paging.<\/p>\r\n<p style=\"text-align: justify;\">The paging will implemented in the hardware level.<\/p>\r\n<p style=\"text-align: justify;\">If logical address is same as physical address then no hardware support of paging is required.<\/p>\r\n<p style=\"text-align: justify;\"><strong>Frame (Physical Page or Page Frame):<\/strong> A frame is a unit of physical memory. Physical memory is divided into blocks of same size called frames.<\/p>\r\n<p style=\"text-align: justify;\"><strong>Page (Virtual page or Logical page):<\/strong> A page is a unit of logical memory of a program. Logical memory is divided into blocks of same size called pages.<\/p>\r\n<p style=\"text-align: justify;\">When a new process arrives, its size (in pages) is determined. If the process has <em>n<\/em> pages in logical memory then <em>n<\/em> frames must be available in the physical memory.<\/p>\r\n<h2 style=\"text-align: justify;\"><span lang=\"EN\">What is Segmentation<\/span>?<\/h2>\r\n<p style=\"text-align: justify;\">Paging does not follow user\u2019s view of memory allocation. To achieve user\u2019s view of memory allocation, segmentation is used.<\/p>\r\n<p style=\"text-align: justify;\">Instead of dividing memory into equal-sized pages, virtual address space is divided into variable-length segments. Segments are variable-length modules of a program that correspond to logical units of the program.<\/p>\r\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-225 aligncenter\" src=\"http:\/\/study.madeeasy.in\/wp-content\/uploads\/2024\/06\/segment-table.png\" alt=\"Segment table\" width=\"471\" height=\"254\" \/><\/p>\r\n<h2 style=\"text-align: justify;\"><span lang=\"EN\">What is Demand Paging<\/span>?<\/h2>\r\n<p style=\"text-align: justify;\">Load a page into memory only when it is needed (when it is referenced). The virtual memory manager swaps in a page of an executing process whenever the execution of a process references a page that is not in physical memory. Any unused page in physical memory will normally be swapped out to disk.<\/p>\r\n<p style=\"text-align: justify;\">\u00a0<\/p>\r\n\r\n\r\n\r\n<p style=\"text-align: center;\"><a class=\"btn btn-danger\" role=\"button\" href=\"https:\/\/study.madeeasy.in\/cs-it\/operating-system\/what-is-logical-virtual-vs-physical-address-space\/\" target=\"_blank\" rel=\"noopener\">&lt;&lt; Previous<\/a> | <a class=\"btn btn-success\" role=\"button\" href=\"https:\/\/study.madeeasy.in\/cs-it\/operating-system\/what-is-page-fault-in-os-operating-system\/\" target=\"_blank\" rel=\"noopener\"> Next &gt;&gt;<\/a> <br \/><strong> Must Read: <\/strong> <a href=\"https:\/\/study.madeeasy.in\/subjects\/what-is-an-operating-system-and-its-types\/\" target=\"_blank\" rel=\"noopener\"><strong>What is an operating system and its types?<\/strong><\/a><\/p>\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Paging is static memory allocation technique that permits the physical address space of a process to be non contiguous. The<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,3],"tags":[112,113,114],"class_list":["post-392","post","type-post","status-publish","format-standard","hentry","category-operating-system","category-cs-it","tag-demand-page","tag-what-is-paging","tag-what-is-segmentation"],"_links":{"self":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/comments?post=392"}],"version-history":[{"count":0,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/392\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/media?parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/categories?post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/tags?post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}