INTERVIEW QUESTIONS
OPERATING SYSTEMS
WINDOWS OPERATING SYSTEM
DETAILS
Question: Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs?
Answer: A page fault occurs when an access to a page that has not been brought into main memory takes place. The operating system verifies the memory access, aborting the program if it is invalid. If it is valid, a free frame is located and I/O is requested to read the needed page into the free frame. Upon completion of I/O, the process table and page table are updated and the instruction is restarted.
|
Question:
Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs?
Answer:
A page fault occurs when an access to a page that has not been brought into main memory takes place. The operating system verifies the memory access, aborting the program if it is invalid. If it is valid, a free frame is located and I/O is requested to read the needed page into the free frame. Upon completion of I/O, the process table and page table are updated and the instruction is restarted. Source: CoolInterview.com
when a process is executed with only few pages in memory,& when an instruction is encountered which refers to any instruction or data in some other page,which is not present in the main memory,a page fault occurs. Source: CoolInterview.com
Answered by: Abhishek | Date: 4/5/2009
| Contact Abhishek
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|