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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where is the relevant information about the interrupted program saved ?

A

Either on stack, or in the process control block.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly