Skip to content
Snippets Groups Projects
Select Git revision
  • bed881fcd9fa55794f197e8fd417793afcb71ad9
  • tutorial-12 default
  • tutorial-10
  • tutorial-11
  • tutorial-9
  • tutorial-8
  • tutorial-7
  • tutorial-6
  • tutorial-5
  • tutorial-4
  • tutorial-3
  • tutorial-2
  • tutorial-1
  • main protected
14 results

recap.md

Blame
  • user avatar
    Chao Zhan authored
    bed881fc
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    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} $$