Difference between pages "Template:Help Us" and "Commgroup"

From Mesham
(Difference between pages)
Jump to navigationJump to search
m (3 revisions imported)
 
m (6 revisions imported)
 
Line 1: Line 1:
<!--<div style="margin: 0 0 15px 0; padding: 0.2em; background-color: #EFEFFF; color: #000000; border: 1px solid #9F9FFF; text-align: center;">
+
== Syntax ==
'''Mesham always needs your help! See the [[Wish List]] for more information.'''
+
 
</div>-->
+
commgroup[process list]
 +
 
 +
== Semantics ==
 +
 
 +
Specified within the multiple type, will limit memory allocation (and variable communication) to the processes within the list given in this type's arguments. This type will ensure that the communications group processes exist. All variables marked in this way are private to their local processes.
 +
 
 +
== Example ==
 +
 
 +
function void main() {
 +
    var i:Int :: allocated[multiple[commgroup[1,3]]];
 +
};
 +
 
 +
In this example there are a number processes, but only 1 and 3 have variable ''i'' allocated to them. This type would have also ensured that process two (and zero) exists for there to be a process three.
 +
 
 +
''Since: Version 0.5''
 +
 
 +
[[Category:Type Library]]
 +
[[Category:Compound Types]]
 +
[[Category:Allocation Types]]

Latest revision as of 15:44, 15 April 2019

Syntax

commgroup[process list]

Semantics

Specified within the multiple type, will limit memory allocation (and variable communication) to the processes within the list given in this type's arguments. This type will ensure that the communications group processes exist. All variables marked in this way are private to their local processes.

Example

function void main() {
   var i:Int :: allocated[multiple[commgroup[1,3]]];
};

In this example there are a number processes, but only 1 and 3 have variable i allocated to them. This type would have also ensured that process two (and zero) exists for there to be a process three.

Since: Version 0.5