25 - CPU Sharing Flashcards
1
Q
How can we have a multitasking system on a single processor ?
A
OS provides parallel processing by sharing the time of the CPU between different programs.
2
Q
What are the 2 main strategies to manage the CPU’s resources ?
A
- I/O breaks: while one program waiting for I/O to take place, another can use the CPU to execute instructions
- Time-slicing: CPU can switch rapidly between different programs executing a few instructions from each, using a period interrupt.
3
Q
What is the interrupt function called and where is called from?
A
Interrupt service routine (ISR) or Interrupt handler.
It is called from an event outside the normal program execution.
4
Q
Where is the relevant information about the interrupted program saved ?
A
Either on stack, or in the process control block.