Q1 Interrupts and traps, differencies.

A1 An interrupt is caused by an external event

A trap is caused by the program, an internal event

Q2 What is Process Control Block?

The collection of process information is represented in the operating system by a data structure element called process control block (PCB) . Consists of:




Q3 What is Context Switch?

Switching between processes is termed as context switch. When the CPU switches to another process, the system must save the state of the old process and load the saved state for the new process;