Select Git revision
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
recap.md 1.59 KiB
title: Finale
layout: center
Last Tutorial Session
title: Reminders
Reminders
- Last tutorial session
- Last chance to present (vorrechnen) your assignment sheet
Today's topics
- Exam preparation
- More on Web Development
title: Exam Preparation layout: two-cols
Relevant topics
- Concurrency, Determinism
- Critical Sections, Threads, Locks
- Petri Nets
- Semaphores, Monitors
- Deadlocks
- Parallel Programming (OpenMP, MPI)
- IPC/RPC
- P2P Networks
- Cloud Computing
- Web Development
::right::
Non-relevant topics
- Java RMI
title: Banker's Algorithm
Banker's Algorithm I
Calculate v and B and give an termination order of the threads if the situation is safe.
$$ G = \begin{pmatrix} 5 & 3 & 3 & 1 \ 4 & 3 & 1 & 3 \ 5 & 6 & 4 & 3 \ 2 & 2 & 0 & 0 \ 6 & 5 & 3 & 2 \end{pmatrix}
R = \begin{pmatrix} 4 & 3 & 2 & 1 \ 1 & 2 & 0 & 1 \ 4 & 5 & 3 & 2 \ 0 & 1 & 0 & 0 \ 5 & 3 & 1 & 1 \end{pmatrix}
f = \begin{pmatrix} 0 & 1 & 0 & 1 \end{pmatrix} $$
title: Banker's Algorithm
Banker's Algorithm II
Calculate f and R and give an termination order of the threads if the following situation is safe.
$$ G = \begin{pmatrix} 5 & 11 & 10 \ 8 & 6 & 11 \ 7 & 3 & 5 \ \end{pmatrix}
B = \begin{pmatrix} 3 & 10 & 9 \ 6 & 4 & 7 \ 2 & 0 & 4 \ \end{pmatrix}
v = \begin{pmatrix} 13 & 15 & 22 \end{pmatrix} $$