Fork/join updates

Two threads that concurrently attempt to increase the values `p.x` and `p.y`, respectively, of an object `p` of type Point. The shared state can be splitted into two: one thread having writing permission to `p.x` and the other thread to `p.y`.

General information

ID59
Articlenone
Back-endChalice
LanguagePVL
FeaturesFork/join concurrency
Sources
Path to example fileforkjoin/update-point.pvl
Date2017-06-16

Statistical information

Lines of code47 lines (comments not included)
Lines of specification5 lines (10.64% of the total)
Computation time7551 milliseconds

Example code

Note, verification may take a while and has a time-out of 20 seconds.