|
Technical Sample Questions : C |
C++ |
Oracle |
Java | Unix |
Operating Systems |
Data Structure
Sample Technical Questions
Unix Sample Questions
Questions on memory management in uinx
- What are conditions for a machine to support Demand Paging?
Answer:
Memory architecture must based on Pages,
The machine must support the 'restartable' instructions.
- What is 'the principle of locality'?
Answer:
It's the nature of the processes that they refer only to the small subset of the total data space of the process. i.e. the process frequently calls the same subroutines or executes the loop instructions.
- What is the working set of a process?
Answer:
The set of pages that are referred by the process in the last 'n', references, where 'n' is called the window of the working set of the process.
- What is the window of the working set of a process?
Answer:
The window of the working set of a process is the total number in which the process had referred the set of pages in the working set of the process.
- What is called a page fault?
Answer:
Page fault is referred to the situation when the process addresses a page in the working set of the process but the process fails to locate the page in the working set. And on a page fault the kernel updates the working set by reading the page from the secondary device.
- What are data structures that are used for Demand Paging?
Answer:
Kernel contains 4 data structures for Demand paging. They are,
- Page table entries,
- Disk block descriptors,
- Page frame data table (pfdata),
- Swap-use table.
- What are the bits that support the demand paging?
Answer:
Valid, Reference, Modify, Copy on write, Age. These bits are the part of the page table entry, which includes physical address of the page and protection bits.
| Page address | Age | Copy on write | Modify | Reference | Valid | Protection |
« Previous || Next »
Unix Sample Question Number : 1-5 | 6-11 | 12-16 | 17-23 | 24-29 | 30-36 | 37-41 | 42-48 | 49-55 | 56-61 | 62-67 | 68-73
|
|