1 / 26

Calculation of Communicating Systems (CCS)

Calculation of Communicating Systems (CCS). Amir Masoumzadeh Shahyad Sharghi. Outline. What is CCS ? Syntax and Definitions Semantics Behavioral Equivalence References. What is CCS ?. A process algebra that provides mathematical models of concurrent behavior By Robin Milner, 1980

dandridge
Download Presentation

Calculation of Communicating Systems (CCS)

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. Calculation of Communicating Systems (CCS) Amir Masoumzadeh Shahyad Sharghi

  2. Outline • What is CCS ? • Syntax and Definitions • Semantics • Behavioral Equivalence • References

  3. What is CCS ? • A process algebra that provides mathematical models of concurrent behavior • By Robin Milner, 1980 • “Communication & Concurrency”, 1989 • Handshake synchronization

  4. Definitions • Names • Labels • Co-names • By convention • Actions • : internal or silent action not in Labels • Process Identifiers

  5. Process Expressions • Nil Process • Definition • Prefixing • Choice • Parallel Composition • Restriction • Relabelling such that

  6. Process Expressions Parallel Composition Restriction

  7. Relabelling Process Expressions Choice

  8. Semantics • Using Labelled Transition System • Transition relation is given by SOS rules:

  9. Rules for CCS • Prefixing • Choice

  10. Rules for CCS • Parallel Composition

  11. Rules for CCS • Restriction • Relabelling

  12. Using The Rules

  13. Value-Passing CCS • Handshake synchronization is extended with the possibility to exchange integer values

  14. Behavioral Equivalence • The behavior of two process are equal when each can simulate exactly the behavior of the other • CCS can be used to describe both implementations of processes and specifications of their expected behaviors.

  15. Trace Equivalence • Let be an LTS • Trace set s for Proc • Let • s,t are trace equivalent iff Traces(s) = Traces(t)

  16. Trace Equivalence • Let • Do these processes behave the same? • The second term can deadlock:

  17. Problem • Not only afford the same traces, but the states that they reach should still be equivalent

  18. Strong Bisimilarity • A binary relation is a strong bisimulation iff whenever then for each : • Two processes are strong bisimilar (p1~p2) iff there exists a strong bisimulation R such that

  19. Strong Bisimilarity • Example:

  20. Strong Bisimilarity - Properties • Let P,Q be CCS processes such that P ~ Q then • Properties for any CCS processes P,Q,R :

  21. Problems with Internal Actions • Strong bisimilarity does not abstract away from actions!

  22. Weak Bisimilarity • A binary relation is a weak bisimulation iff whenever then for each • Two processes are weak bisimilar iff there exists a strong bisimulation R such that

  23. Weak Bisimilarity - Properties • Let P,Q be CCS processes such that P ~ Q then • What about choice?

  24. Automatic Tools • Concurrency Workbench (CWB) • Laboratory for Foundations of Computer Science, University of Edinburgh • http://www.dcs.ed.ac.uk/home/cwb/ • Help us in • deciding equivalence between processes • model checking • drawing the LTS of a process • interactively simulating the processes

  25. References • Luca Aceto, Kim G. Larsen, “An Introduction to Milner’s CCS”, Aalborg University, Denmark, March 2005 • R. Cleaveland, S.A. Smolka, “Process Algebra”, 1999 • Vashti Galpin, “A comparison of bisimulation-based semantic equivalences for non-interleaving behavior over CCS processes”

  26. Thanks

More Related