Assembly: Fore;
The IForeThread interface is used to control a thread.
IForeThread
Threads are used to execute custom methods in parallel with the work of the main application.
To create a thread, initialize a new object of the ForeThread class by specifying the required method in the Create constructor. Several threads can be created to execute one method with different parameters, all threads will be execute in parallel. To start the thread for execution, call the Start method. Thread state can be monitored using the State property. Interaction with a thread can be executed via global class variables, static properties and class methods.
Use threads to execute long operations in parallel mode. In this case it is available to continue work with the application itself.
Property name | Brief description | |
Name | The Name property determines a thread name. | |
State | The State property returns the current thread state. |
Method name | Brief description | |
Abort | The Abort method stops thread execution. | |
Join | The Join method stops code execution before thread completion. | |
Sleep | The Sleep method pauses thread execution for the specified number of milliseconds. | |
Start | The Start method starts thread for execution. |
See also: