• Keine Ergebnisse gefunden

Problem 2: A Deadlock-Free Petri Net

N/A
N/A
Protected

Academic year: 2021

Aktie "Problem 2: A Deadlock-Free Petri Net"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Concurrency Theory(WS 2010/11) Out: Wed, Nov 17 Due: Mon, Nov 22

Exercise Sheet 4

Jun.-Prof. Roland Meyer, Georgel C˘alin Technische Universit¨at Kaiserslautern

Problem 1: Simple Mutual Exclusion

Consider the Petri netN = (S, T, W, M0)depicted below and letCbe its connectivity matrix.

p1 p2

p3

p4 p5 t1

t2

t3

t4

Use linear algebraic techniques in order to:

(a) determine the S-invariants of the Petri netN;

(b) prove that for allM ∈R(N):M(p2) +M(p4)≤1(p2 andp4 are mutually exclusive) is implied by any invariant out of amaximal subsetof the S-invariants you found.

Problem 2: A Deadlock-Free Petri Net

Consider the Petri netN = (S, T, W, M0)depicted below and letCbe its connectivity matrix.

p1 t2

p3

2

t1

t3 t5

p5

t4

p2

t8

t6

p6

t7

p4 t9

(a) describe the set D⊆ N|S|of markings which represent deadlocks of N and determine whetherCx=M −M0 is solvable inN|T|for someM ∈D;

(b) determine the S-invariants and the traps of the Petri netN;

(c) prove thatD∩R(N) =∅by showing that the system of linear inequalities describing Dtogether withN’s traps and S-invariants is inconsistent; areall/anytraps really needed?

(2)

Problem 3: Lamport’s Mutual Exclusion Algorithm

Consider the Petri net below, describing Lamport’s1-bit mutual exclusion algorithm.

cs1 idle1 req1

nid1 id1

af ter you2

await2

id2

idle2

cs2

req2

(a) set up the colinear property one would want the mutex to satisfy and determine the connectivity and trap matrices of the given Petri net;

(b) prove that thebasic verification systemis feasible;

(c) prove that theenhanced verification systemis infeasible.

How do you interpret the fact thatbvsis feasable andevsinfeasible?

Problem 4: Unfoldings, Configurations and Cuts

Consider the Petri net depicted below.

(a) unfold the given Petri net and outline one of its prefixes;

(b) describe/list all the configurations and cuts of your unfolding.

p1 p2

t1 t2

p3

t3

p4 p5

t4

p6 p7

Why is your unfolding finite?

Referenzen

ÄHNLICHE DOKUMENTE

In both cases provide the initial marking of the additional places you might have added and argument why your Petri nets do what

 Deadlock avoidance decide for each process if it can proceed or has to wait based on available resources, currently allocated?. resources and the resources allocated by a process

Firing t2 initializes all source links as well as state places, the inner activity, the event handlers, and for each scope embedded in the process its respective place !push

In this section, we will sketch a workow theory introduced by van der Aalst Aal97a, Aal97b, Aal98]. Its simplicity and its correspondence to intuitive ideas are analogous to

The present paper shows that the Petri nets associated with policy enforcements (called cryp- tographic workflow nets) have attractive features.. The most important among

Deadlock and Starvation Producer-Consumer, The concept of the monitor, Condition

Der Notify (oder Signal-) Mechanismus weckt schlafende Threads auf, welche nachfolgend ihre Bedingung prüfen. cond.notify_one signalisiert einen

Many non-nu- clear weapons states are dissatisfied with the nuclear disarmament efforts of the nu- clear powers recognized by the treaty (the US, Russia, France, the UK, and