Difference between pages "Template:Box" and "Commgroup"

From Mesham
(Difference between pages)
Jump to navigationJump to search
m (4 revisions imported)
 
 
Line 1: Line 1:
<div style="margin: 0 0 10px 0; padding: 0 1em 0.7em 1em;  background-color: #F5FAFF; color: #000000; border: 0px solid #CEDFF2; padding:0.6em 0.8em;">
+
== Syntax ==
  
<h2 style="margin:0;background-color:#CEDFF2;font-size:120%;font-weight:bold;border:1px solid #A3B0BF;text-align:left;color:#000;padding:0.2em 0.4em;">{{{title}}}</h2>
+
commgroup[process list]
{{{{{subject}}}}}
+
 
</div>
+
== 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.
 +
 
 +
== 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]]

Revision as of 14:19, 15 April 2013

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.

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