Skip to content

Example of how to use TThread and all of the threading tools available with Free Pascal

License

Notifications You must be signed in to change notification settings

gcarreno/TestThreading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Threading

Build Status Supports Windows Supports Linux Supports macOS License Latest Release Downloads

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.

About

Example of how to use TThread and all of the threading tools available with Free Pascal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages