Difference between pages "Category:Communication Mode Types" and "Allocated"

From Mesham
(Difference between pages)
Jump to navigationJump to search
 
(Created page with '== Syntax == allocated[{type}] == Semantics == This type sets the memory allocation of a variable, which may not be modified once set. == Example == var i: Int :: allocated…')
 
Line 1: Line 1:
By default, communication in Mesham is blocking (i.e. will not continue until a send or receive has completed.) Standard sends will complete either when the message has been sent to the target processor or when it has been copied into a buffer, on the source machine, ready for sending. In most situations the standard send is the most efficient, however in some specialist situations more performance can be gained by overriding this.
+
== Syntax ==
  
By providing these communication mode types illustrates a powerful aspect of type based parallelism. The programmer can use the default communication method initially and then, to fine tune their code, simply add extra types to experiment with the performance of these different communication options.
+
allocated[{type}]
  
 +
== Semantics ==
 +
 +
This type sets the memory allocation of a variable, which may not be modified once set.
 +
 +
== Example ==
 +
 +
var i: Int :: allocated[];
 +
 +
In this example the variable ''i'' is an integer. Although the ''allocated'' type is provided, no addition information is given and as such Mesham allocates it to each processor.
 +
 +
[[Category:Type Library]]
 
[[Category:Composite Types]]
 
[[Category:Composite Types]]
 +
[[Category:Allocation Types]]

Revision as of 00:34, 4 January 2010

Syntax

allocated[{type}]

Semantics

This type sets the memory allocation of a variable, which may not be modified once set.

Example

var i: Int :: allocated[];

In this example the variable i is an integer. Although the allocated type is provided, no addition information is given and as such Mesham allocates it to each processor.

Pages in category ‘Communication Mode Types’

The following 7 pages are in this category, out of 7 total.