how can i allow my app to support multi-threading?
i want to make an app that supports like 50threads, and that each thread have a subthread, so that the first thread must wait until the subthread terminate.
TPrimeAdder = class(TThread)
fPosition, fPosition2: integer;
procedure Execute; override;
Thread1 := TPrimeAdder.Create (TRUE);
Thread1.FreeOnTerminate := TRUE;
in this way i just get one thread.. How can i Duplicate it?