<<

Contents

Search

>>

 

START_THREAD

 

 

Instruction

 

 

Syntax:

START_THREAD(<Macroname>)

 

<Macroname> = <MACRONAME>

 

Meaning:

Executes a macro as thread.

 

The macro <Macroname> is started as thread.

 

Note: The macro and the program are running simultaneously. Therefore the access to shared variables must be synchronized (SYNCHRONIZED, SET_SYNCHRONIZED, ADD_SYNCHRONIZED).

 

The thread is finished when the macro is finished, that is either when the end of the macro has been reached or when the instruction QUIT is executed. The instruction GOTO #<Mask Field> does not have any effect in a macro which has been started as thread.

 

Parameter:

Macroname

Name of macro

 

Sample:

START_THREAD(COMPUTE.DATA)

 

See also:

MACRO

QUIT

SYNCHRONIZED

SET_SYNCHRONIZED

ADD_SYNCHRONIZED