TThread is an abstract class that enables creation of separate threads of execution in an application.
TThread = class;
Create a descendant of TThread to represent an execution thread in a multi-threaded application. Each new instance of a TThread descendant is a new thread of execution. Multiple instances of a TThread derived class make an application multi-threaded.
When an application is run, it is loaded into memory ready for execution. At this point it becomes a process containing one or more threads that contain the data, code and other system resources for the program. A thread executes one part of an application and is allocated CPU time by the operating system. All threads of a process share the same address space and can access the process's global variables.
Use threads to improve application performance by
Following are issues and recommendations to be aware of when using threads:
Define the thread object's Execute method by inserting the code that should execute when the thread is executed.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!