Process Management Flashcards

1
Q

What is Multitasking?

A

Two or more programs active with interleaved execution

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

What is Multiprocessing?

A

A computing environment with multiple processors

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

What is a Program?

A

A series of instructions (static)

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

What is a Process?

A
  • A program with its execution state (dynamic)
  • You can have many processes all executing the same
    program with different state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Outline the life of a process.

A
  • Process is created
  • Cycles between CPU bursts and I/O bursts
  • Process ends
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the 5 State model?

A

New:
- The OS is creating the PCB and allocating initial resources to the process
Ready:
- The process is waiting for its turn to use the CPU
Running:
- The process is running on the CPU
Blocked:
- The process is waiting for some event to happen
(I/O, timer, child to end, interrupt)
Exiting:
- The OS is reclaiming the process’ resources and notifying its parents

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

What are the 2 kinds of scheduling?

A

Nonpreemptive and Preemptive

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

What is Preemptive scheduling?

A

-  The OS decides when a process has had enough CPU time
-  Packages up the state of the process and moves the process to the
ready queue
-  The transition is undetectable to the process

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

What is Nonpreemptive scheduling?

A

-  The process decides when its computations are in a stable state to
give up the CPU ( Eg. System call )
- Uncommon today

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

What is a context switch?

A

The event of saving the state of a process in the
running state to its PCB and of restoring the state of
another process from its PCB to the hardware.

Implications:

  • Empty hardware caches
  • Flush instruction pipelines
  • Stop all look-ahead processing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Common Schedulers

A

Short term scheduler:

  • Determines who will execute next – orders the ready queue
  • Executed frequently

Long term scheduler:

  • Determines when a process can transition from new to ready
  • Tries to ensure a good mix if CPU-bound and I/O-bound processes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Less Common Schedulers

A

Dispatcher:
- The code that actually does context switches
- If no dispatcher then the short term scheduler does the context switch
Medium term scheduler:
- Monitors the performance of the system and can temporarily
remove processes from the ready queue and/or adjust resources
seen by the long term scheduler to ensure good system
performance

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