Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Communicating Sequential Processes

exupero
September 22, 2015

Communicating Sequential Processes

A brief introduction to communicating sequential processes as a paradigm for concurrent programming.

exupero

September 22, 2015
Tweet

More Decks by exupero

Other Decks in Programming

Transcript

  1. SHARING MEMORY THE PROBLEM: NON-DETERMINISM RACE CONDITIONS DEADLOCKS HARD TO

    REPRODUCE HARD TO DEBUG HARD TO ENSURE RELIABILITY
  2. (x → P) αCTR={up, right} µX : A • F(X)

    (s⌒t)n+1=s⌒(t⌒s)n⌒t A* = { s | s ↾ A = s } (c?x → P(x)) = (y : { y | channel(y) = c } → P(message(y))) (c!v → P) || (c?x → Q(x)) = c!v → (P || Q(v)) (right!v → P)≫(left?y → Q(y)) = P≫Q(v) DON’T PANIC π-calculus