Sign in Join
FPDoc Onlineexperiment

TProcess.ThreadID property

Member of TProcesspublicIn unit Process

ID of the main process thread.

Declaration

pascal
property ThreadID: Integer read FThreadID;

Description

ProcessID is the ID of the main process thread. It is the same as the handle of the main process thread (or the process itself) on Unix systems, but on Windows it is different from the thread Handle.

The ID is only valid after Execute has been called. It is not reset after the process stopped.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.