文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > An extension of the liveness theory for concurrent sequential processes competing for share
侵权投诉

An extension of the liveness theory for concurrent sequential processes competing for share

The design of concurrent systems has to deal with the satisfaction of conditions of good behavior. In this work the way to model and analyze concurrent systems is using a subclass of Petri nets that is an extension of a previous class studied for the same

6. NBM is the net composed of places and transitions de ned in items 3, 4 and 5 for marking M . 7. MBM is the marking of the net restricted to places belonging to circuits that contain deadlocked processes. 8. PNBM is the set of places that do not belong to any circuit containing deadlocked processes for marking M . Note that these sets depend on marking and, for di erent markings, we might obtain di erent sets. hN; M0 i be a marked Let M 2 R(N; M0 ) be a reachable marking that represents a state with several deadlocked processes. Then 9S insu ciently marked siphon. Proof: From marking

M, and if there exist enabled transitions, we can make the system evolve till the only enabled transitions are the ones in fP 0 g. In other words, we can re transitions to reach a marking M 0 such that all processes are deadlocked or in the idle state. This new marking veri es that 8M 00 2 R(N; M 0), M 00 (PR ) M 0 (PR ) . That is, for every reachable state from the actual marking, the number of available resources is smaller than or equal to the number of available resources in the actual state. As a consecuence of that, we can drop the tokens that are in the idle state without lost of generality. Let NBM be the subnet of N obtained with marking M 0 and de nition 2.24. The net composed of PiBM= PBM\ (Pi Pi0 ) and TiBM= TBM\ Ti is strongly connected. It must be remembered that places in PBM and TBM are nodes of a circuit, and, for each i, there exists one only idle place named Pi0 . Therefore, the net< PiBM; TiBM; FiBM> is composed of a set of circuits that have in common at least these places, Pi0 . Then (PBM; TM ) is a set of strongly connected state machines, and therefore 0 (PBM RBM; TBM; MBM ) is a marked and dead3 P SR. Following proposition 2.20 we can locked W S state that there exists 9SB a siphon (we have discarded the marking to simplify notation; it must be remembered that these statements depend on mark0 ing), such that MB (SB ) is insu cient. SB can be a set of places that are not a siphon of the whole net (Some resources can be used for non-deadlocked processes). To construct the whole net siphon it is needed to add, for each of these resources, the set of its holders. Let us de S the set: ne? PRBM= r2RB Pr\ PNBM M Then we can de ne another set: S= SB PRBM . Now we must show that this new set S is a siphon and it is insu ciently marked.

W S 3 P SR.

Proposition 2.25 Let

Let us suppose that 9t 2 p such that 8p0 2 t; p0 62 SB . The ring of transition t puts tokens in place p, and so 8Y; Y T:C= 0; Y 0 such that p 2 kY k holds that 9p1 2 t such that p1 2 kY k (and every place belongs to a conservative component by lemma 2.18). As a particular case it is true for every conservative component that has no places from P 0 (and that, by lemma 2.19, has a place from PR ), and in particular for that components that have places from PR\ SB . In consequence, if 9t 2 p such that 8p0 2 t; p0 62 SB, then 9p1 2 t^ p1 2 S, since p1 correspond to a holder for a resource in SB . Let us suppose that 9t 2 r such that 8p 2 t; p 62 SB . For these resources the set of holders has been included. Then we can assure that 9p1 2 t such that In this case the places belong to a connected component Y 0; Y T:C= 0 that has places from SB . This implies that 8t 2 p; 9p0 2 t such that p0 2 kY k and therefore p0 2 S . 2. It is insu ciently marked. The set SB is insu ciently marked because of how it was constructed, and the set S n SB it is also insufciently marked because it has been constructed with insu ciently marked places for marki

ng M 0. t u hN; M0 i be a marked W S P SR. Let M 2 R(N; M0 ) be a reachable marking. If t 2 Ti is a not-live transition for marking M, then 9S insu ciently marked deadlock.

p 2 S n SB p 2 S n SB .

0

0

0

0

0

Proposition 2.26 Let 3

0

0

0

0

0

0

0

0

0

0

0

Sketch of the proof: In the same way as in proposition 2.25, if there exist processes that are not deadlocked, we can make evolve the system till these processes reach a deadlocked state or its idle state. If there exists a deadlocked process, we can apply the previous result, else there is a contradiction because if all the processes can reach its idle state and all of them have an acceptable marking, it is not possible to have a non-live transition. t u

0

0

0

0

We have shown that liveness problems in the kind of models we are studying, appear when one of the siphons can reach an state without enough tokens. Therefore, a control policy must avoid that these situations can be reached. One way to do this is to add places to the net that do not allow the reaching of such undesired states.

3 A CONTROL POLICY If the way to avoid undesired markings is to add places that limit the way the net can evolve, a control

1. It is a siphon. There are three kind of places to be studied:

上一页第5页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email