Deadlock Analysis of Petri Nets Based On The Resource Share Places Relationship
Deadlock Analysis of Petri Nets Based On The Resource Share Places Relationship
59
Authorized licensed use limited to: ULAKBIM UASL - Bilkent University. Downloaded on August 06,2023 at 03:50:18 UTC from IEEE Xplore. Restrictions apply.
IMACS Multiconference on "Computational Engineering in Systems Applications"(CESA), October 4-6, 2006, Beijing, China.
60
Authorized licensed use limited to: ULAKBIM UASL - Bilkent University. Downloaded on August 06,2023 at 03:50:18 UTC from IEEE Xplore. Restrictions apply.
IMACS Multiconference on "Computational Engineering in Systems Applications"(CESA), October 4-6, 2006, Beijing, China.
P4
2) # (pri, O(tk)) ># (pri, E(tk)) 4> 1
p5
S
r2
Therefore, we can know that the sum of transitions of
a row direction of a transitive matrix is 1 in any case.
If a value of tk( ), is smaller than 1, we can In this MPR, through definition 9 and 10, we can
s obtaine a relationship like as follow table MPR .
know that the Petri net model mistake.
pI p2 p3 p4 P5 p6 rl r2
O
O
O
0
0
0
0
1/2
0
0
1/2
0
1/2
0
0
P4
P5
12
1
where n >1 and integer, else the PN is deadlock. O O 0 1 0 0 0 1 P6 2
O O 1/2 0 1/2 0 0 0 rl
O 1/2 0 0 0 12 12 r2 32
3. DEADLOCK FINE ALGORITHM IN PETRI
NET USING THE TRANSITIVE MATRIX
l 1 2
A. Deadlock . In this table MPR, we can find two jobs like as JI:
pl-p2-p3 and J2:p4-p5-p6, and this relationship is
A deadlock problem is occurred by the conflict place explained one cycle. Also, we can find some
in the net. For example in figure 3.1, two transitions relationship between the resource share places rl and
t2 and t5 are deadlock status by the place MI and M2. r2:
Case of r2:
-relation condition in row: 1/2+1/2+1/2 = 3/2
-relation condition in column: ±1 =2
61
Authorized licensed use limited to: ULAKBIM UASL - Bilkent University. Downloaded on August 06,2023 at 03:50:18 UTC from IEEE Xplore. Restrictions apply.
IMACS Multiconference on "Computational Engineering in Systems Applications"(CESA), October 4-6, 2006, Beijing, China.
Input: N = <P,T,F,M> 3 0 0 0 0 0 0 1 P3 2
62
Authorized licensed use limited to: ULAKBIM UASL - Bilkent University. Downloaded on August 06,2023 at 03:50:18 UTC from IEEE Xplore. Restrictions apply.
IMACS Multiconference on "Computational Engineering in Systems Applications"(CESA), October 4-6, 2006, Beijing, China.
(4) add one arc to input deadlock status node for and M1,M2 and M3 have not any token for fire. We
another resource share place. can say that this marking is dead at M1.
(5) verify the marking sequence with modified MRP. Based on the avoidance algorithm, we can get an
(6) If this marking sequence accepts fire conditions avoidance PN and transitive matrix like as follows:
then this net will be avoided deadlock status and
stopped, else this is not deadlock status avoidance,
repeat (1) to (4) until satisfy (6). m1P 1Pi i} ~~~~~~~~~~~~~~~~~~~~~~~~~i)
5. ILLUSTRATION MODEL
I
0 0 0 0 0 0 0 0 0 0 0 0 t2/2 0 0
lis!'i
0 0 t3 2 0 0 0 0 0 0 0 0 0 0 t3l 2 0
0 0 0 t4 0 0 0 0 0 0 0 0 0 0 t4
40 t5 0 0 0 0 0 0 0 0 0 0 0 0
T
0 0 0 0 0 t6/2 0 0 0 0 0 t6l 2 0
KAOI
M3 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
t7/ 2
0
0
t812
0
0
0 0 0 0 0 0 t9 0 0 0 0 0 0 0 t9
0 0 0 0 40 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 tl 1/ 2 0 0 M12 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 t121 2
0 0 0 0 0 0 0 0 t1312 0 0 0 0 t13 2 0
0 0 0 0 0 0 0 0 0 t14 0 0 t14 2 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
00 0 0 t16 2 0 0 0 t161 2
Figure 5.1 System structure 0
0
0
0
0
0
0
0
00 0
0 0
0
0
0
0
0
0
0
0
0
0
0 0
0 t1812
tl7/ 2
0
0
0
0 0 0 0 0 0 0 0 0 0 0 t19 0 0 t19
0 0 0 0 0 0 0 0 0 0 0
Let's assume that the production ratio is 1/4, which 0 W2 0 0 0 t6/2 0 0 t13 2
0 0 0 0
til20
t6/2
tl7/ 2
0
means that the goal is to manufacture 25% of Jobl 1, 0 0 t2l 2 0 0 0 0 t7/ 2 0 0 0 t12/2 0 0 0 t16/2 0 0
-I
t131 2
t121 2
Job 2, Job 3 and Job 4. We define that the incorporate 0 0 0 t3 2 0 0 0 0 0 0 M12 0 0 0 0 0 0 t1812 0
t7/2
tll /: t3l 2
t161 2
0
Job 1: {M1,M2,M3}
Job 2: {M2,M1,M3}
Job 3: {M1,M2,M3}
Job 4: {M3,M2,M1}
The PN representation of system is as follows:
, IJA----
F
63
Authorized licensed use limited to: ULAKBIM UASL - Bilkent University. Downloaded on August 06,2023 at 03:50:18 UTC from IEEE Xplore. Restrictions apply.
IMACS Multiconference on "Computational Engineering in Systems Applications"(CESA), October 4-6, 2006, Beijing, China.
in Chapters 5.1 can be illustrated in the following [7]Murata T.(1989). Petri Nets: Properties, Analysis
algorithm. an Applications, Proceedings of the IEEE, 77(4),
IEEE,USA pp. 541-580.
Algorithm: [8] Peterson JLv(1981), Petri Net Theory and the
Input: N = <P,T,F,M> Modeling of Systems, Englewood Cliffs, NJ
Output: N is deadlock free or not Prentice-Hall, Inc.,.
(1) Define MPR of a Petri net initial N. [9]Shatz SM.,Tu S.,Murata T(1996). An application
(2) make a marking sequence from the initial place of Petri net reduction for Ada Tasking Deadlock
and resource share place. Analysis, In: IEEE Trans. on Parallel and Distributed
(3) if it's not satisfy enable then define that deadlock Systems, Vol. 7, No. 12, pp. 1307-1322
status and deadlock node. [10] Xiong HH,Zhou MC.(1997), Deadlock free
(4) add one arc to input deadlock status node for scheduling of an automated manufacturing system
another resource share place. based on Petri nets",In IEEE ICRA'97,pp.945-950
(5) verify the marking sequence with modified MPR. [1 1]Lee J.(2004). Deadlock find algorithm using the
(6) If this marking sequence accepts fire conditions Transitive Matrix", In: Proceeding CIE'04
then this net will be avoided deadlock status and [12]A.Giua,et elc.,(2004), observer-Based state-
stopped, else this is not deadlock status avoidance, feedback control of timed Petri nets with deadlock
repeat (1) to (4) until satisfy (6). recovery, In: IEEE Trans. on Automatic control, Vol.
49, No. 1, pp. 17-29
[13]X.Ke-Yi, Hu BS, Chen HX(1996), Deadlock
6. CONCLUSION Avoidance Policy for Petri net Modeling of Flexible
Manufacturing Systems with Shared resources, , In:
In this paper, we focused on the avoidance policy of IEEE Trans. on Automatic control, Vol. 41, No. 2,
the deadlock problem in Petri nets using the pp.289-295
transitive matrix. The transitive matrix explained all [14] F.basil,A.Giua,C.Seatzu,(2003) Observer-based
relationship between the places and transitions in the state-feedback control of time Petri nets with
net. By these relationships, we can find deadlock deadlock recovery: theory and implementation, In
status based on the relation between the resource Proceed. Of Symp. On Discrete events in Industrial
share places. Finally, it can be said that this method and manufacturing systems, CESA2003.
is very easy to find the deadlock status and modify
the deadlock status in the net. In this work, we
showed very simple example for guaranty about to
find and to avoidance deadlock in ordinarily Petri
nets. In near future we will study to find and
avoidance the deadlock problem in General Petri nets
using the transitive matrix and to deadlock avoidance
problem on the cyclic scheduling in FMS.
REFERENCES
[I]Corbett JC(1996), "Evaluating Deadlock detection
methods for concurrent software", IEEE tr. Sof. Eng.
Vol.22(3),pp. 161-180
[2]Damasceno BC. And Xie X.(1999) Petri nets and
deadlock-free scheduling of multiple-resource
operations, In IEEE SMC'99,pp.878-883
[3] Ezpleta J.,Colom JM,Martinez J.(1995), A Petri
net based deadlock prevention policy for flexible
manufacturing systems, IEEE tr. Robotics and
Automat., Vol. I I,no.2,pp.173-184
[4]Liu J.,Itoh Y., Miyazawa I., Seikiguchi T.,(1999).
A Research on Petri nets Properties using Transitive
matrix, In: Proceeding IEEE SMC99,pp.888-893
[5]Lee J., Korbaa 0.(2006). Scheduling analysis of
FMS:An unfolding time Petri nets approach,
mathematics and Computer simulation, 70, pp. 419-
432
[6]Melzer S. and Romer S.(1997). Deadlock
checking using net Unfoldings, In Proc. of the Conf
on Computer-Aided Verfication (CA V'97)
64
Authorized licensed use limited to: ULAKBIM UASL - Bilkent University. Downloaded on August 06,2023 at 03:50:18 UTC from IEEE Xplore. Restrictions apply.