- An
attempt is made for accessing the page.
- If
page is present in the memory the usual instructions are followed.
- If
page is not there i.e., is invalid then a page fault is generated.
- Memory
reference to a location in the virtual memory is checked if it is valid or
not. If it’s an illegal memory access then the process is terminated. If
not the requested page has to be paged in.
- The
disk operations are scheduled for reading the requested page in to the
physical memory.
- Restarting
the instruction that raised the page fault trap.
Tuesday, June 25, 2013
Explain about demand paging and page replacements
Posted by
Sunflower
at
6/25/2013 11:49:00 AM
0
comments
Labels: Algorithms, Data, Demand Paging, Logical, Management, Memory, Operating System, Page Replacement, Page table, pages, Paging, Physical, Process, Request, Strategy, Systems, Techniques, Virtual Memory
![]() | Subscribe by Email |
|
Tuesday, May 28, 2013
Concept of page fault in memory management
Classification of Page Faults
Posted by
Sunflower
at
5/28/2013 03:00:00 PM
0
comments
Labels: Address, Fault, Hardware, Invalid, Main Memory, Major, Memory, Memory management, Minor, Operating System, Page Fault, pages, Physical, Processor, program, Software, Types, Virtual Memory
![]() | Subscribe by Email |
|
Tuesday, May 21, 2013
Define the Virtual Memory technique?
What is Virtual Memory technique?
Posted by
Sunflower
at
5/21/2013 05:40:00 PM
0
comments
Labels: Contiguous, CPU, Fragmentation, Hardware, Kernel, Memory, Memory management, Multitasking, Operating Systems, Physical, Process, Secondary, Space, Storage, Technique, Virtual, Virtual Memory
![]() | Subscribe by Email |
|
Sunday, April 21, 2013
What is a virtual memory?
Posted by
Sunflower
at
4/21/2013 10:01:00 PM
0
comments
Labels: Address, Advantages, Application, Code, Data, Hardware, Kernel, Memory, Multi-tasking, Multi-threading, Operating System, Performance, Physical, program, Software, Storage, Tasks, Virtual, Virtual Memory, Virtualization
![]() | Subscribe by Email |
|
Friday, January 22, 2010
Demand Segmentation
Although demand paging is considered the most efficient virtual memory system, a significant amount of hardware is required to implement it. When this hardware is lacking, less efficient means are sometimes devised to provide virtual memory. A case in point is demand segmentation.
Operating system allocates memory in segments, rather than in pages. It keeps track of these segments through segment descriptors, which include information about the segment's size, protections, and location. A process does not need to have all its segments in memory to execute. Instead, the segment descriptor contains a valid bit for each segment to indicate whether the segment is currently in memory. If the segment is in memory, the access continues unhindered. If the segment is not in memory, a trap to the operating system occurs. Operating system then swaps out a segment to secondary storage, and brings in the entire requested segment. The interrupted instruction then continues.
To determine which segment to replace in case of segment fault, operating system uses another bit in the segment descriptor called an accessed bit. It is set whenever any byte in the segment is either read or written. A queue is kept containing an entry for each segment in memory. After every time slice, the operating system places at the head of the queue any segments with a set access bit.
It then clears all access bits. In this way, the queue stays ordered with the most recently used segments at the head.
Demand segmentation requires considerable overhead. Thus, demand segmentation is not an optimal means for making best use of the resources of a computer system.
Posted by
Sunflower
at
1/22/2010 09:13:00 PM
0
comments
Labels: CPU, Demand Segmentation, Memory, Operating Systems, pages, Paging, Process, Segmentation, Virtual Memory
![]() | Subscribe by Email |
|