Operating System [3i Infotech Placement]: Sample Questions 12 - 13 of 81
Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.
Question 12
Write in Short Short Answer▾
In what way the fault handlers and the interrupt handlers are different?
EditExplanation
- Fault is associated with an instruction, which was executed, or some operation that it did. For example an instruction loading from memory can cause page fault. Faults are thus synchronous
- Interrupts on the other hand are asynchronous; they have nothing to do with the executing instruction. For example, a disk can request IO interrupt to get attention of the processor.
Question 13
Explanation
Memory Management:
- Decides the process, which should reside in the main memory.
- Manages parts of the virtual address space of a process which are non-core resident.
- Monitors the available main memory and periodically writes the processes into the swap device so that processes fit in the main memory.
Here are some important points on memory management:
- Unix is machine independent so its memory management scheme varies from one system to another.
- Early versions of UNIX used variable partitioning with no virtual memory scheme.
- Process is either in the memory or on the disk.
- The process is likely to swapped if it is idle, has been in main memory a long time or is large.
- A process is likely to be swapped in completely if it has been swapped out a long time, or it is small.