Presentation is loading. Please wait.

Presentation is loading. Please wait.

Probabilistic Methods in Concurrency Lecture 7 The probabilistic asynchronous p-calculus Catuscia Palamidessi catuscia@lix.polytechnique.fr www.lix.polytechnique.fr/~catuscia.

Similar presentations


Presentation on theme: "Probabilistic Methods in Concurrency Lecture 7 The probabilistic asynchronous p-calculus Catuscia Palamidessi catuscia@lix.polytechnique.fr www.lix.polytechnique.fr/~catuscia."— Presentation transcript:

1 Probabilistic Methods in Concurrency Lecture 7 The probabilistic asynchronous p-calculus
Catuscia Palamidessi Page of the course:

2 The probabilistic asynchronous p-calculus
Originally developed as an intermediate language for the fully distributed implementation of the p-calculus (Herescu and Palamidessi) The results of Lecture 4 show that a fully distributed implementation of p must necessarily be randomized A two-steps approach: p Advantages: the correctness proof is easier since [[ ]] (which is the difficult part of the implementation) is between two similar languages [[ ]] probabilistic asynchronous p << >> distributed machine Pisa, 7 July 2004 Prob methods in Concurrency

3 ppa: the Probabilistic Asynchonous p
Syntax: based on the asynchronous p of Amadio, Castellani, Sangiorgi g ::= x(y) | t prefixes P ::= Si pi gi . Pi pr. inp. guard. choice Si pi = 1 | x^y output action | P | P parallel | (x) P new name | recA P recursion | A procedure name Pisa, 7 July 2004 Prob methods in Concurrency

4 The operational semantics of ppa
Based on the Probabilistic Automata of Segala and Lynch Distinction between nondeterministic behavior (choice of the scheduler) and probabilistic behavior (choice of the process) Scheduling Policy: The scheduler chooses the group of transitions 1/2 1/3 2/3 1/2 1/3 2/3 1/2 1/3 2/3 Execution: The process chooses probabilistically the transition within the group Pisa, 7 July 2004 Prob methods in Concurrency

5 The operational semantics of ppa
Representation of a group of transition P { --gi-> pi Pi } i Rules Choice Si pi gi . Pi {--gi-> pi Pi }i P {--gi-> piPi }i Par ____________________ Q | P {--gi-> piQ | Pi }i Pisa, 7 July 2004 Prob methods in Concurrency

6 The operational semantics of ppa
Rules (continued) P {--xi(yi)-> piPi }i Q {--x^z-> 1 Q’ }i Com ____________________________________ P | Q {--t-> piPi[z/yi] | Q’ }xi=x U { --xi(yi)-> pi Pi | Q }xi=/=x P {--xi(yi)-> piPi }i Res ___________________ qi renormalized (x) P { --xi(yi)-> qi (x) Pi }xi =/= x Pisa, 7 July 2004 Prob methods in Concurrency

7 The expressive power of p
Example of distributed agreement: the leader election problem P Q y x Pisa, 7 July 2004 Prob methods in Concurrency

8 Prob methods in Concurrency
Implementation of ppa Compilation in Java << >> : ppa  Java Distributed << P | Q >> = << P >>.start(); << Q >>.start(); Compositional << P op Q >> = << P >> jop << Q >> for all op Channels are one-position buffers with test-and-set (synchronized) methods for input and output The probabilistic input guarded construct is implemented as a while loop in which channels to be tried are selected according to their probability. The loop repeats until an input is successful Pisa, 7 July 2004 Prob methods in Concurrency


Download ppt "Probabilistic Methods in Concurrency Lecture 7 The probabilistic asynchronous p-calculus Catuscia Palamidessi catuscia@lix.polytechnique.fr www.lix.polytechnique.fr/~catuscia."

Similar presentations


Ads by Google