Delphi Multi thread example
Posted on 2013-05-17
Let's say I have a procedure called "DoItForALongTime" which runs for 30 seconds.
The user can start it clicking on the Start button.
But after starting the "DoItForALongTime" procedure, the user should be able to click on the Start button again and again so as many "DoItForALongTime" procedures can run at the same time (of course with delayed start).
I would like to have a small working Delphi application about this. It doesn't matter what the "DoItForALongTime" procedure does, only it should last for at least 20 seconds.
I use Delphi 2010.
Thank you very much