Proc

From Mesham
Revision as of 23:51, 3 January 2010 by Polas (talk | contribs) (Created page with '== Syntax == proc n where ''n'' is a variable or value == Semantics == This will limit execution of a block to a certain process == Example == proc 0 { print["Hello f…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Syntax

proc n

where n is a variable or value

Semantics

This will limit execution of a block to a certain process

Example

proc 0
{
   print["Hello from 0\n"];
};
proc 1
{
   print["hello from 1\n"];
};

The code example will run on two processes, the first will display the message 'Hello from 0, whilst the second will output the message hello from 1.