ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Operating Systems >> Operating Systems AllOther
 
 


 

 
 Windows interview questions  Windows Interview Questions (339)
 Linux interview questions  Linux Interview Questions (451)
 Unix interview questions  Unix Interview Questions (455)
 Solaris interview questions  Solaris Interview Questions (781)
 RTOS interview questions  RTOS Interview Questions (43)
 Bulnex interview questions  Bulnex Interview Questions (4)
 Operating Systems General Concepts interview questions  Operating Systems General Concepts Interview Questions (261)
 Data Structures interview questions  Data Structures Interview Questions (67)
 Operating Systems AllOther interview questions  Operating Systems AllOther Interview Questions (48)
Question
how does virtual memory work?
 Question Submitted By :: Operating-Systems-AllOther
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
Todayís processors - the 286, 386, 486 and the Pentium -
can use virtual memory in addition to real memory. Virtual
memory is a service provided by a protected mode operating
system such as the Windows and the Windows 95 working in
conjunction with built-in features of the processor to use
external storage, to simulate large amounts of real memory.
Virtual memory is an operation that involves some carefully
timed cooperation among the processor, a virtual memory
support program and the disk drive.
When a program is being set up to run in the computer, the
operating system creates a virtual memory space, which is a
model of the amount of memory and the memory addresses the
program has at its disposal. Using a feature that is an
integral part of the processor, the operating systemís
virtual memory support program tells the processor to make
the real memory of the computer assigned to the running
program appear to be at some other address. This other
address is the virtual address that the program will use. A
memory mapping feature in the processor makes the real
memory appear to have a working memory address other than
its true address. This makes some real memory addresses
appear to be, and work as, some other virtual addresses.The
more important part of the virtual memory support program
is to handle a situation when a program tries to use more
virtual memory than there is real memory. A program starts
out with some of its usually large virtual memory space
mapped into a part of the computerís comparatively smaller
real memory. As long as the program is working with only
that part of the its virtual memory, all goes fine. The
program actually is using different locations in memory
than it thinks it is, but that does not matter. When the
program refers to that part of the large virtual memory
that has not been assigned to a part of the real memory,
the processor discovers that the program is trying to use
an address that does not currently exists; and the
processor generates what is called a page fault. When there
is a page fault, indicating that a program is trying to use
a virtual address that is not actively mapped into real
memory, a special virtual memory support program swings
into action. It temporarily places the program on hold
while it deals with the crisis. The support program chooses
some part of the memory currently in real memory and saves
its contents temporarily on the disk; this process is
called swapping out. That free-up part of the real memory
is recycled to act as the needed part of the virtual
memory. When the swapped-out part of the memory is needed
again, it is copied back in from the disk. Thus the disk
acts as the warehouse for storing the parts of virtual
memory that are not in current use.
Depending on how things go, the virtual memory operation
can run very smoothly or may involve so much swapping in
and out of memory that a lot of time is wasted waiting for
the swaps to take place. The latter is called thrashing.
 
Is This Answer Correct ?    5 Yes 4 No
Ron
 

 
 
 
Other Operating Systems AllOther Interview Questions
 
  Question Asked @ Answers
 
which one of following is not memory management model? choices are buddy system, monitors, paging, swapping Hughes 6
what is the difference between a soft real time operating system and hard real time operating system? TATA 1
Q1. What is an interrupt? How are multiple interrupts dealt with? Q2. Explain the difference between a MONOLITHIC KERNAL and a MICROKERNAL? Q3. List reasons why a Mode switch between threads may be cheaper than a Mode switch between processes. Q4. What is the difference among deadlock avoidance, detection and prevention? Q5. What items of information about a task might be useful in real time scheduling? Q6. Discuss some of the reasons for implementing process migration ? How is the process address space handled during process migration?   1
MY system is showing "BOOT FAILURE:SYSTEM HALTED" after restarting the system please give me the solution for this problem thanking you........... ITC-Infotech 3
Assume that passwords are selected from four-character combinations of 26 alphabetic characters. Assume that an adversary is able to attempt passwords at a rate of one per second. a) Assuming no feedback to the adversary until each attempt has been completed, what is the expected time to discover the correct password? FCI 2
What is TSY? Samsung 4
Method used for Disk searching.. a.linked list b.AVL c.B-tree d. binary tree Hughes 3
If semaphore variable is 8 after 6 wait operations and 3 signal operations.what is semaphore   3
I have nortan antivirus but some of the virus it can't delete. how will i remove that virus without formating the system ?please help . HCL 3
give the exact definition of operating system is it necessary to load OS in every system to run any program if so, why?   1
Virtual memory size depends on [a] address lines [b] data bus [c] disc space [d] a & c [e] none Wipro 14
what are Prerequisites to Install Active Directory in windows 2000 server? ISL 3
 
For more Operating Systems AllOther Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright © 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com