in Threading in Delphi
The problem I had to solve is how to make file processing as fast as possible. Having a bunch of files (from 500 to 2000+) I have to process them (let's call this "scanning"). The sequential approach (one after another) proven to be too slow. Machines have more cores today and the idea to have this file scanning running in multiple threads is something that must speed up the entire process.
Running file "scanning" in threads is what I need - to control the number of threads running at a time - thus, a Delphi thread pool implementation is what I am looking for.
Read the full article to learn how to do Threaded Delphi Tasks In A Thread Pool - Using The OTL