1. Computing

Running Delphi Tasks In Threads - Thread Pool Implementation In OTL - An Example Project

By December 6, 2011

Follow me on:

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

Related:

Comments
Comments are closed for this post.
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.