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
2
Q
What are the 3 scheduling problems?
A
Race conditions
Starvation
Priority inversion
3
Q
Nessessary conditions for the mutual exclusion
A
- Only one process is allowed to enter the critical section
- No assumption can be made about the speed and the amount of processors
- No process is allowed to block another process outside the critical section
- every process has only to wait a finite time to enter the critical section
4
Q
What is Starvation
A
a process is perpetually
5
Q
The different kinds of schedulings (8, 4 pairs)
A
preemptive / Non preemptive
static / dynamic
offline / online
optimal /heuristic
6
Q
What is Aperiodic Task
A
Irregular arrival times, either hard or soft deadlines, not cyclic
7
Q
What are the non-preemptive Scheduling (4)
A
- First Come First Served
- Shortest Job First
- Earliest Deadline First
- Earliest Start Time First