The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
Small doubt,
We know that, when a page fault(required page is missing in main memory) occurs, the respective process will be blocked (Process is removed from Main memory. Does the page table of this process is removed from main memory?? If so, once the page which was not present earlier in main memory, and process has to execute again for that the required page is loaded into main memory?Once this page is present in main memory, the page table entry for this will have valid bit set to 1. To execute process, again Page Table has to be loaded back.(If it is removed once a process is blocked). Is my understanding correct? Please help me
asked in Operating System by Active (4.7k points) | 97 views

1 Answer

+1 vote

When a process is blocked, it is not removed from the memory. It is in a blocked state waiting for I/O completion interrupt. The CPU, meanwhile, is assigned to some other process from the ready queue.

The page table is stored as part of the PCB. Since, the process is not removed so the page table stays, but gets updated.

As to when a process does get removed from memory? When it is swapped out by the middle term scheduler.

answered by Junior (745 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
48,411 questions
52,746 answers
68,213 users