1 / 6

Chapter 2, Action Systems

“A Discipline of Multiprogramming: Programming Theory for Distributed Applications” by Jayadev Misra. Chapter 2, Action Systems. Idea. action system (state transition system) – no method invocations objects contain only actions, communicate through shared variables only

lyall
Télécharger la présentation

Chapter 2, Action Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. “A Discipline of Multiprogramming: Programming Theory for Distributed Applications” by Jayadev Misra Chapter 2, Action Systems

  2. Idea • action system (state transition system) – no method invocations • objects contain only actions, communicate through shared variables only • this is more traditional model (objects usually called processes) • suitable for problems where tight interaction between components is unimportant and the focus is on correct performance of each individual component

  3. Syntax • action system is defined by • state space – finite number of variables, each variable of some specified type (boolean, integer, etc.), is discrete (may have infinite number of values), The Cartesian product of values of each variable defines state space.booleanb; integerx,y;initial state(s) – defined by declaring initial values for some (or all) variables • may be specified by initial condition – a predicate that is true in initial states: b x=0 y=0 • specification of actions – is a guard (a predicate over the state space) and command (a prescription for the state change)x<y x:=x+1; y:=y-1requirement: if the guard holds the execution of action terminates

  4. Execution semantics • state – an assignment of values to all system variables • the execution of an action system starts in an initial state and consists of an infinite number of steps • step – execution of an arbitrary action • ineffective – guard of the action does not hold, no change to the state • effective – guard holds, command is executed • fairness condition – each action is executed infinitely often

  5. Invariant • invariant – a predicate that is initially true and is preserved by the execution of each action, hence invariant is true throughout the execution • Example: Program Claim: xy is invariant initially holds,Can prove:

  6. Fixed point • fixed point (fixpoint), denoted FP – a state that remains unchanged by execution of any action • once the fixpoint is reached further execution has not effect • To compute fixpoint

More Related