threadEnd#

Purpose#

Marks the end of a multi-line block of code to be executed as a thread.

Format#

threadEnd;

Examples#

threadBegin;
   m = n*p;
   n = calcA(m);
threadEnd;

Notice that the writer-must-isolate rule (see Multi-Threaded Programming in GAUSS) does not apply within the bounds of the Format/Format pair, as there is no risk of simultaneous access to a symbol. The rule only applies between the threads in a given set (and their children).

See Format for an example of a fully-defined thread set.

See also

Functions Format, Format, Format