This document covers the concepts of virtual memory and file sharing interfaces, detailing memory management techniques, advantages and disadvantages of virtual memory, and types such as demand paging. It emphasizes the importance of efficient memory allocation, the role of virtual memory in supporting multiprogramming, and the impact on system performance. Additionally, it discusses file concepts, access methods, and directory structures related to file sharing and protection.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views14 pages
UNIT - 4 Demand Paging
This document covers the concepts of virtual memory and file sharing interfaces, detailing memory management techniques, advantages and disadvantages of virtual memory, and types such as demand paging. It emphasizes the importance of efficient memory allocation, the role of virtual memory in supporting multiprogramming, and the impact on system performance. Additionally, it discusses file concepts, access methods, and directory structures related to file sharing and protection.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14
UNIT -4
VIRTUAL MEMORY AND FILE SHARING INTERFACE
TOPICS • Memory Management • Virtual memory • Demand Paging • Copy on Write • Page Replacement • Frames • Allocation of Frames • Thrashing • File Concepts • Access Method • Directory Structure • File System Mounting • File Sharing • Protection MEMORY MANAGEMENT • Allocate and de-allocate memory before and after process execution. • To keep track of used memory space by processes. • To minimize fragmentation issues. • To proper utilization of main memory. • To maintain data integrity while executing of process. VIRTUAL MEMORY • Virtual memory is a memory management technique used by operating systems to give the appearance of a large, continuous block of memory to applications, even if the physical memory (RAM) is limited. • The main objective of virtual memory is to support multiprogramming, The main advantage that virtual memory provides is, a running process does not need to be entirely in memory VIRTUAL MEMORY ADVANTAGE OF VIRTUAL MEMORY • By using virtual memory many applications or programs can be executed at a time. • Main memory has limited space but you can increase and decrease the size of virtual memory by yourself. • Users can run large programs that have a size greater than the main memory • The data which is common in memory can be shared between RAM and virtual memory • CPU utilization can be increased because more processes can reside in the main memory • The cost of buying extra RAM is saved by using virtual memory DIS ADVANTAGE OF VIRTUAL MEMORY • Virtual memory tends to slow down your computer because the speed of the hard drive is less than RAM • Switching between applications takes more time • As virtual memory allocates space on the hard drive so for user use the hard drive space becomes less • The overall performance of the system is affected • The algorithm for virtual memory is difficult to implemen TYPES OF VIRTUAL MEMORY • Demand paging
• Demand segmentation DEMAND PAGING DEMAND PAGING VALID AND INVALID BIT PAGE FAULT