fun lite
play

FUN LITE - A PARALLEL P ETRI N ET S IMULATOR Jochen Spranger - PDF document

FUNlite - A parallel Petri Net Simulator September 1997 BrandenburgTechnical University at Cottbus, Computer Science Institute FUN LITE - A PARALLEL P ETRI N ET S IMULATOR Jochen Spranger jsp@informatik.tu-cottbus.de


  1. FUNlite - A parallel Petri Net Simulator September 1997 BrandenburgTechnical University at Cottbus, Computer Science Institute FUN LITE - A PARALLEL P ETRI N ET S IMULATOR Jochen Spranger jsp@informatik.tu-cottbus.de http://www.informatik.tu-cottbus.de jsp@informatik.tu-cottbus.de 1 / 8

  2. FUNlite - A parallel Petri Net Simulator September 1997 I NTRODUCTION : ❑ Provably error-free control software for manufactur- ing systems ❑ Live 1-bounded hierarchical Place/Transition nets ❑ Parallel Petri Net simulator to simulate the tokenflow of a Petri Net ❑ Goals: - fast execution speed - low memory consumption - low communication overhead ❑ Transputer system (T9000 & C104) INMOS C (CSP model of parallel programming) jsp@informatik.tu-cottbus.de 2 / 8

  3. FUNlite - A parallel Petri Net Simulator September 1997 P RELIMINARIES : ❑ Simulation of the tokenflow: - the control code is assigned to the transitions - the execution of a transition is atomar! ❑ Problems: Parallelity Conflict resolution jsp@informatik.tu-cottbus.de 3 / 8

  4. FUNlite - A parallel Petri Net Simulator September 1997 T HE SEQUENTIAL P ETRI N ET S IMULATOR ❑ Main problem: speed of the transition enabling test ❑ The counter method: - one counter for each transition representing the number of unmarked pre-places i.e. counter( t ) == 0 ⇒ t enabled - after the firing of t , we only have to consider • ) • t • ) • ( ( t , t and • ) • ( ❑ For each transition t’ in t we increase the counter of t’ by the number of common pre-places with t t’ t t • ) • ( ❑ For each transition t’ in t we decrease the counter of t’ by the number of common places between the pre- places of t’ and the post-places of t t’ jsp@informatik.tu-cottbus.de 4 / 8

  5. FUNlite - A parallel Petri Net Simulator September 1997 C OMMUNICATION P LACES : ❑ Post-communication places ❑ Pre-many-to-1 communication places (2) ❑ Pre-many-to-many communi- cation places jsp@informatik.tu-cottbus.de 5 / 8

  6. FUNlite - A parallel Petri Net Simulator September 1997 L OCKSETS : ❑ Goals: - simple conflict resolution - atomar allocation of more than one token ❑ Locksets: (disjointed sets of many-to-many commu- nication places) Definition: A lockset l is a minimal set of many-to- many communication places such that holds: • • ∈ ∩ If there are transitions with t t ' , T t t ' contains many-to-many communication places of l then the lockset l contains all many-to-many • • ∪ communication places of . t t ' t t’ t’’ jsp@informatik.tu-cottbus.de 6 / 8

  7. FUNlite - A parallel Petri Net Simulator September 1997 I MPLEMENTATION : ❑ A lockset l is implemented by: - For each transition t with a many-to-many communication place in l we introduce a counter representing the number of missing communication place tokens. - For each place p in l we generate an input process which waits for an arriving token and updates the counters of the corresponding transitions - An administration process which reacts on token requests from subnets counters input processes t 0 admin t’ 1 process t’’ 1 jsp@informatik.tu-cottbus.de 7 / 8

  8. FUNlite - A parallel Petri Net Simulator September 1997 C ONCLUSION : ❑ fast and simple conflict resolution ❑ fast transition enabling test ❑ minimal network traffic ❑ low memory consumption suited for small systems jsp@informatik.tu-cottbus.de 8 / 8

Recommend


More recommend