Concurrency (Scheduling) Flashcards

1
Q

What is Race Condition

A

Threads&Processes are reading or writing shared data, which leads to results depending on the exact execution order of instructions
Solution: Introduction of critical sections and mutual exclusion

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

What are the 3 scheduling problems?

A

Race conditions
Starvation
Priority inversion

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

Nessessary conditions for the mutual exclusion

A
  1. Only one process is allowed to enter the critical section
  2. No assumption can be made about the speed and the amount of processors
  3. No process is allowed to block another process outside the critical section
  4. every process has only to wait a finite time to enter the critical section
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Starvation

A

a process is perpetually

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

The different kinds of schedulings (8, 4 pairs)

A

preemptive / Non preemptive
static / dynamic
offline / online
optimal /heuristic

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

What is Aperiodic Task

A

Irregular arrival times, either hard or soft deadlines, not cyclic

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

What are the non-preemptive Scheduling (4)

A
  • First Come First Served
  • Shortest Job First
  • Earliest Deadline First
  • Earliest Start Time First
How well did you know this?
1
Not at all
2
3
4
5
Perfectly