Professional Documents
Culture Documents
OS Sheet (4) Solution
OS Sheet (4) Solution
Major :
2) _____ is the concept in which a process is copied into main memory from the secondary memory
according to the requirement.
a) Paging b) Demand paging
c) Segmentation d) Swapping
4) When a program tries to access a page that is mapped in address space but not loaded in physical memory,
then
a) segmentation fault occurs b) fatal error occurs
c) page fault occurs d) no error occurs
6) Which algorithm chooses the page that has not been used for the longest period of time whenever the
page required to be replaced?
a) first in first out algorithm b) additional reference bit algorithm
c) least recently used algorithm d) counting based page replacement algorithm
12) When a page fault occurs, the state of the interrupted process is :
a) disrupted b) invalid
c) saved d) None of these
2
c) a technique for overcoming external fragmentation
d) a technique for overcoming fatal error
23) When the memory allocated to a process is slightly larger than the process, then :
a) internal fragmentation occurs b) external fragmentation occurs
c) both a and b d) neither a nor b
3
c) to protect the address spaces of processes
d) None of these
27) With relocation and limit registers, each logical address must be _______ the limit register.
a) less than b) equal to
c) greater than d) None of these
The responsibility of the memory manager is to efficiently manage the primary memory
of the computer.
Since every process must have some amount of primary memory in order to execute, the
performance of the memory manager is crucial to the performance of the entire system.
A new process is placed in the smallest block of unallocated memory in which it will fit.
A new process is placed in the first memory hole large enough to accomodate it.
6. What is fragmentation?
Fragmentation is the condition of splitting primary memory into segments as the memory
is allocated and deallocated to various processes.
7. How can systems run processes which are larger than available primary memory?
The system can use secondary storage to simulate more primary memory. This scheme is
known as virtual memory.
The page table keeps track of all the pages that are currently loaded into primary memory.
4
A page fault occurs whenever a process requests a page that is not currently loaded into
primary memory.
Random Replacement, First In First Out, Second Chance, Least Recently Used, and Least
Frequently Used.
The Least Recently Used policy takes advantage of the heuristic that pages which have been
accessed recently are more likely to be accessed again.