You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
476 B
17 lines
476 B
const int K;
|
|
|
|
// Liveness (if a philosopher is hungry then eventually some philosopher eats)
|
|
|
|
filter(forall, "hungry" => P>=1 [ F "eat"])
|
|
|
|
|
|
// Bounded until (minimum probability, from a state where someone
|
|
// is hungry, that a philosopher will eat within K steps)
|
|
|
|
Pmin=? [ F<=K "eat" {"hungry"}{min} ]
|
|
|
|
|
|
// Expected time (from a state where someone is hungry, the maximum
|
|
// expected number of steps until a philosopher eats)
|
|
|
|
R{"num_steps"}max=? [ F "eat" {"hungry"}{max} ]
|