Provides management of parallel threads.
Waiting for the specified flow to complete.
Finishes the execution of the specified flow.
Queries the received message.
Sends a message to the specified stream.
Runs the function passed as a parameter in a separate thread.
Waiting for the specified flow to complete.
Threading.joinThread("threadId");
As a parameter, it is necessary to specify thread id.
Finishes the execution of the specified flow.
The thread id must be specified as a parameter.
Queries the received message.
If wait is true, it waits until a message arrives.
Sends a message to the specified stream.
As parameters, it is necessary to specify thread id and message.
Runs the function passed as a parameter in a separate thread.
Warning! This creates a new copy for all global variables. So if the value of a variable change in one thread, it stays the same in another thread.
As parameters, it is necessary to specify thread id and function.