MTHREAD - v14


mthread                    { t=<index>, { create, cmd=<action>, period=<time interval> }
{ kill }
{ pause }
{ awake }
}
{ ? }

Function

This command enables the execution of several macros in parallel. The functionality includes control over the manner of execution of a parallel macro (or macro-thread), in terms of pausing, resuming and killing of the associated process.

Parameters

t=                   

Specifies the thread index. If the index is 0 then the operation is applied to all the active threads.

 

 

create

Creates a new thread.

   

cmd

Command to execute as part of the thread.
 

kill

Kills an existing thread.

 

 

pause

Temporarily pauses an existing active thread. This value represents the number of milliseconds between an event and the following one.

 

 

period

The time interval during which the thread will be active.

 

 

awake

Resumes an existing paused thread.

 

 

?

Print the active threads table.

Examples

mthread ?

mthread t=1,create,cmd=’do thread_1’,per=100

mthread t=1,pause

mthread t=1,awake

mthread t=1,kill

mthread t=0,pause

Notes

Update 11.6.3 B04 Command first introduced.

 

The execution of a macro associated with a macro-thread is accomplished by suspending the execution of other threads.