Question
When using virtual memory, what happens when a page
fault occurs and the operating system cannot find a free frame in physical memory?Solution
When a page fault occurs, the operating system attempts to load the required page into memory. If no free frames are available, the OS must replace an existing page using a page replacement algorithm such as FIFO, Optimal, or LRU. The chosen algorithm determines which page is swapped out of physical memory to make room for the new page. This approach is fundamental to virtual memory systems, allowing processes to execute even when their memory demands exceed the available physical memory. Why Other Options are Incorrect: A) The process is terminated: The OS does not terminate the process unless a severe error occurs, such as a protection fault. B) The page is loaded into a random memory frame: Pages are never loaded into random frames; the OS follows a replacement strategy. D) The OS reduces the process’s memory size: Reducing memory size is not a response to page faults; instead, page replacement is used. E) The process continues execution without any changes: The process cannot continue until the required page is loaded into memory.
A certain sum of money becomes Rs. 1900 in 1 year and 2600 in 3 years at certain rate of simple interest. Find the sum of money invested.
How many possible values can the digit 'k' take if the number 9458k2 is divisible by 8?
A group of 20 boys can complete a task in 15 days. Similarly, 24 girls can finish the same task in 20 days. If the ratio of the e...
In order that the lines y = x + 1, 2x - 3y + 5 = 0 and 3x - y + m = 0 may meet in a point, the value of m should be:
Let f: [3, ∞) → R be defined by f(x) = x² – 6x + 11. The range of f is:
The average of 26 numbers is 45. If 4 is added to each number, then the new average will be:
What will come in place of ?
4, 5, 13, 40, 104, ?.
A person, 'Q', uses 40% of their monthly income on food and then spends 60% of what is left on rent. After covering these expense...
A shopkeeper bought two articles for Rs. 600 each. If he sold one of them at 40% profit and the other at 25% loss, then find the difference between the ...