## 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);

Notice that the writer-must-isolate rule (see Multi-Threaded Programming in GAUSS) does not apply within the bounds of the threadBegin/threadEnd 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 threadJoin for an example of a fully-defined thread set.
Functions threadBegin, threadJoin, threadStat