Task variables hold thread related information, such as thread identification, service category, and dispatching priority. A variable is given the TASK attribute by explicit declaration, or implicitly by appearing in a THREAD option.
|
A task variable is associated with a thread by the task reference in the THREAD option of the ATTACH statement creating the thread. A task variable is active if it is associated with a thread that is active. A task variable must be allocated before it is associated with a thread and must not be freed while it is active. An active task variable cannot be associated with another thread.