Difference between revisions of "Sync"

From Mesham
Jump to navigationJump to search
m
Line 8: Line 8:
  
 
Will synchronise processes and acts as a blocking call involving all processes. This keyword is linked with default shared memory communication and other types. Omitting the variable name will result in synchronisation for all appropriate constructs. This can be thought of as a barrier, and the value of a variable can only be guaranteed after the appropriate barrier has completed.  
 
Will synchronise processes and acts as a blocking call involving all processes. This keyword is linked with default shared memory communication and other types. Omitting the variable name will result in synchronisation for all appropriate constructs. This can be thought of as a barrier, and the value of a variable can only be guaranteed after the appropriate barrier has completed.  
 +
 +
''Since:'' Version 0.5
  
 
[[Category:Parallel]]
 
[[Category:Parallel]]

Revision as of 18:07, 13 January 2013

Syntax

sync name;

Where the optional name is a variable.

Semantics

Will synchronise processes and acts as a blocking call involving all processes. This keyword is linked with default shared memory communication and other types. Omitting the variable name will result in synchronisation for all appropriate constructs. This can be thought of as a barrier, and the value of a variable can only be guaranteed after the appropriate barrier has completed.

Since: Version 0.5