One approach to handling a page fault ...
// load page into a free frame ... else { frameno = getFreeFrame(); p->frameNo = frameno; p->status = Loaded; }
Assumes that we have a way of quickly identifying free frames
Commonly handled via a free list
Reminder: frames allocated to a process become free when process exits