DOC PREVIEW
USC CSCI 599 - November2a

This preview shows page 1-2-3-26-27-28 out of 28 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 28 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 28 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 28 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 28 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 28 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 28 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 28 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CSCI 599 - Formal Methods Concurrency ExamplesAgendaConcurrency IssuesTutorial of Petri NetsTutorial of Petri Nets (2)Tutorial of Petri Nets (3)Tutorial of Petri Nets (4)Tutorial of Petri Nets (5)Tutorial of Petri Nets (6)Tutorial of Petri Nets (7)Tutorial of Petri Nets (8)Tutorial of Petri Nets (9)Tutorial of Petri Nets (10)Tutorial of Petri Nets (11) Producer-ConsumerTutorial of Petri Nets (12) Producer-ConsumerAssumptions Gas Station ExampleAssumptions Gas Station Example (2)Gas Station Example Tank ComponentGas Station Example Operator ComponentGas Station Example Pump ComponentGas Station Example Customer ComponentGas Station Example Example Linking ComponentsAssumptions Cruise Control ExampleAssumptions Cruise Control Example (2)Cruise Control Example Engine ComponentCruise Control Example Gas/Break Pedal ComponentsSlide 27Concluding Remarks1Gas Station and Cruise Control Gas Station and Cruise Control SpecificationsSpecificationsRonnie ApcarRonnie ApcarEdwin ChiuEdwin ChiuHasmik JerejianHasmik JerejianNovember 2, 2000November 2, 2000CSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianCSCI 599 - Formal Methods CSCI 599 - Formal Methods Concurrency Examples Concurrency Examples2Concurrency IssuesConcurrency IssuesBrief Tutorial of Petri NetsBrief Tutorial of Petri NetsThe Gas Station SpecificationThe Gas Station SpecificationThe Cruise Control SpecificationThe Cruise Control SpecificationConcluding RemarksConcluding RemarksQ&AQ&ACSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianAgenda Agenda3Synchronization and CommunicationSynchronization and CommunicationResource sharingResource sharingDeadlockDeadlockStarvationStarvationNon-determinismNon-determinismCSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianConcurrency Issues Concurrency Issues4What are Petri Nets?What are Petri Nets?–Petri Nets are a graphical formalism for Petri Nets are a graphical formalism for systems specificationsystems specificationPetri Nets are formed from Petri Nets are formed from finitefinite sets of sets of–PlacesPlaces–TransitionsTransitions–ArrowsArrows connecting either places to connecting either places to transitions or transitions to placestransitions or transitions to placesCSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianTutorial of Petri Nets Tutorial of Petri Nets5A Petri Net (PN) is given a A Petri Net (PN) is given a statestate by by markingmarking its places. its places. MarkingMarking of a PN consists of assigning a of a PN consists of assigning a nonnegative integer to each nonnegative integer to each placeplace. . –Graphically, Graphically, tokenstokens are inserted in places of a PN are inserted in places of a PNInput placeInput place - arrow goes from the place to - arrow goes from the place to the transtionthe transtionOutput placeOutput place - arrow goes from the - arrow goes from the transition to the placetransition to the placeCSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianTutorial of Petri Nets (2) Tutorial of Petri Nets (2)6CSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianTutorial of Petri Nets (3) Tutorial of Petri Nets (3)7CSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianTutorial of Petri Nets (4) Tutorial of Petri Nets (4)8A A transitiontransition may have one or more may have one or more InputInput and and Output placesOutput placesA A transitiontransition is is enabledenabled if there is at least if there is at least one one tokentoken in in eacheach of its of its input placesinput places..An An EnabledEnabled transition may transition may firefire::– one one tokentoken is removed from each is removed from each input input placeplace and one and one tokentoken is inserted in each is inserted in each ouput placeouput place of the transition of the transitionCSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianTutorial of Petri Nets (5) Tutorial of Petri Nets (5)9A Petri Net as A Petri Net as a four-tuple (P,T,I,O)a four-tuple (P,T,I,O), , wherewhere–P is a set of P is a set of placesplaces–T is a set of T is a set of transitionstransitions–I is an input function:I is an input function:for places leading for places leading intointo a transition a transition–O is an output functionO is an output functionfor places leading for places leading outout of a transition of a transitionCSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianTutorial of Petri Nets (6) Tutorial of Petri Nets (6)10Describing Concurrent Systems with PNDescribing Concurrent Systems with PN–TransitionsTransitions - model events or actions - model events or actions–Transition FiringsTransition Firings - model occurrence of - model occurrence of events or execution of actionsevents or execution of actions–Presence of Presence of tokenstokens - denote existence of - denote existence of some condition, that allow an event or some condition, that allow an event or actionaction–TransitionsTransitions are concurrent - if enabled, firing are concurrent - if enabled, firing of one does not prevent others from firingof one does not prevent others from firingCSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianTutorial of Petri Nets (7) Tutorial of Petri Nets (7)11StarvationStarvation–a process never receives access to a a process never receives access to a needed resourceneeded resourceDeadlockDeadlock–iff no transition iff no transition is enabled in that markingis enabled in that markingLiveLive–no deadlock can ever occurno deadlock can ever occurCSCI 599 Formal MethodsNovember 2, 2000Concurrency Examples R. Apcar, E. Chiu, H. JerejianTutorial of Petri Nets (8) Tutorial of Petri Nets (8)12Limitations and extensions of Petri NetsLimitations and extensions of Petri Nets–similar to FSMs (Finite State Machines), similar to FSMs (Finite State Machines), control-oriented modelcontrol-oriented model–tokenstokens are anonymous are anonymoussolution: assigning values to tokenssolution: assigning values to tokens–not possible to specify selection policynot possible to specify


View Full Document

USC CSCI 599 - November2a

Documents in this Course
Week8_1

Week8_1

22 pages

Week2_b

Week2_b

10 pages

LECT6BW

LECT6BW

20 pages

LECT6BW

LECT6BW

20 pages

5

5

44 pages

12

12

15 pages

16

16

20 pages

Nima

Nima

8 pages

Week1

Week1

38 pages

Week11_c

Week11_c

30 pages

afsin

afsin

5 pages

October5b

October5b

43 pages

Week11_2

Week11_2

20 pages

final

final

2 pages

c-4

c-4

12 pages

0420

0420

3 pages

Week9_b

Week9_b

20 pages

S7Kriegel

S7Kriegel

21 pages

Week4_2

Week4_2

16 pages

sandpres

sandpres

21 pages

Week6_1

Week6_1

20 pages

4

4

33 pages

Week10_c

Week10_c

13 pages

fft

fft

18 pages

LECT7BW

LECT7BW

19 pages

24

24

15 pages

14

14

35 pages

Week9_c

Week9_c

24 pages

Week11_67

Week11_67

22 pages

Week1

Week1

37 pages

LECT3BW

LECT3BW

28 pages

Week8_c2

Week8_c2

19 pages

Week5_1

Week5_1

19 pages

LECT5BW

LECT5BW

24 pages

Week10_b

Week10_b

16 pages

Week11_1

Week11_1

43 pages

Week7_2

Week7_2

15 pages

Week5_b

Week5_b

19 pages

Week11_a

Week11_a

29 pages

LECT14BW

LECT14BW

24 pages

T7kriegel

T7kriegel

21 pages

0413

0413

2 pages

3

3

23 pages

C2-TSE

C2-TSE

16 pages

10_19_99

10_19_99

12 pages

s1and2-v2

s1and2-v2

37 pages

Week10_3

Week10_3

23 pages

jalal

jalal

6 pages

1

1

25 pages

T3Querys

T3Querys

47 pages

CS17

CS17

15 pages

porkaew

porkaew

20 pages

LECT4BW

LECT4BW

21 pages

Week10_1

Week10_1

25 pages

wavelet

wavelet

17 pages

October5a

October5a

22 pages

p289-korn

p289-korn

12 pages

2

2

33 pages

rose

rose

36 pages

9_7_99

9_7_99

18 pages

Week10_2

Week10_2

28 pages

Week7_3

Week7_3

37 pages

Load more
Download November2a
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view November2a and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view November2a 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?