{
Create, Priority, Resume example
This example shows how to create a thread and start it running at a lower priority than the main execution thread. It assumes that the thread’s FreeOnTerminate property is True, so that there is no need to free the thread when it finishes.
} 
var 
  SecondProcess: TMyThread; { TMyThread is a custom descendant of TThread }
begin
  SecondProcess := TMyThread.Create(True); { create suspended – secondprocess does not run yet }
  SecondProcess.Priority := tpLower; { set the priority to lower than normal }
  SecondProcess.Resume; { now run the thread }
end;
 
