uppaal-models

Uppaal Model Repository

View the Project on GitHub DEIS-Tools/uppaal-models

Fischer’s Mutual Exclusion Protocol

Global Declarations

typedef int[1,6] id_t;
int id;

Process Template P

Parameters:

const id_t pid

Local declarations:

clock x;
const int k = 2;

P

System Declarations

system P;

Queries

// Mutex requirement.
A[] forall (i:id_t) forall (j:id_t) P(i).cs && P(j).cs imply i == j

// The system is deadlock free.
A[] not deadlock

// Whenever P(1) requests access to the critical section it will eventually enter the wait state.
P(1).req --> P(1).wait