Blocking

From Mesham
Revision as of 19:41, 10 January 2010 by Polas (talk | contribs) (Created page with '== Syntax == blocking[ ] == Semantics == Will force P2P communication to be blocking, which is the default setting == Example == var a:Int::allocated[single[on[1]]]; var b…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Syntax

blocking[ ]

Semantics

Will force P2P communication to be blocking, which is the default setting

Example

var a:Int::allocated[single[on[1]]];
var b:Int::allocated[single[on[2]]] :: blocking[];
a:=b;

The P2P communication (send on process 2 and receive on process 1) resulting from assignment a:=b will force program flow to wait until it has completed. The blocking type has been omitted from the that of variable a, but is used by default.