in Operating System
2,460 views
0 votes
0 votes
Consider the following statements :
P : A page fault occurs when the required page is not available in the main memory.
Q : There exists a situation that, there is no space available in the main memory.
Which of the following is true ?‘
(A) Both P and Q are true, and Q is also a reason for P
(B) Both P and Q are true, and Q is not reason for P
(C) P is false but Q is true
(D) Both P and Q are false
in Operating System
2.5k views

2 Answers

2 votes
2 votes
Best answer

P)When the page (data) requested by a program is not available in the memory, it is called as a page fault.Thus it is correct option.

Q) if program grows while it is being executed, eventually it will run out of main memory to use. 

  • If there is not enough memory available to keep all running processes in memory at the same time, then some processes who are not currently using the CPU may have their memory swapped out to a fast local disk called the backing store.
  • Virtual memory helps when such situation arise.

   Thus Q is also true

Valid page faults are not errors, and are common and necessary to increase the amount of memory available to programs in any operating system that utilizes virtual memory.Thus Q is a reason for P.

Thus answer is A.

selected by
0 votes
0 votes
p is false and q is true

1 comment

no   P is correct  ans so is Q
1
1

Related questions

0 votes
0 votes
1 answer
3