TestThreading
Example of how to use TThread and all of the threading tools available with Free Pascal
- Quiet · last change 9-3-2023
- ★ 12 on GitHub
README
Test Threading
Example of how to use the Class TThread and all of the threading tools available with Free Pascal.
Single Thread, Single Instance
This exemplifies the most basic use of a thread.
It declares an event to hook into the main form.
This is a single shot use because we set the thread's FreeOnTerminate property to True.
Single Thread, Many Instances
The example above isn't of much use if we just run a single instance.
In this example we create multiple instances of the same thread and we start them concurrently.
This is, also, a single shot use because we set the thread's FreeOnTerminate property to True.

