Using tasks to make your customer happier
Since RAD Studio XE7 Delphi and C++ Builder developers can use Parallel Programming Library (PPL). What is PPL? PPL is a part of the Delphi RTL that provides facilities multithreading (or parallel) programming.
PPL is available for all the platforms supported by Delphi and provides a number of advanced features for running tasks, joining tasks, waiting on groups of tasks to process, and so forth. PPL is not only a different way to create threads, but is a different way to manage threads as well. Why? Because to manage all of these features (tasks, futures, parallel for, joining, and so on), there is a thread pool that self-tunes automatically (based on the load on the CPUs), so you do not have to care about creating or managing threads for this purpose.
The good news is that PPL is quite simple to use and doesn't require big changes to your application. You can use this library by including System.Threading
in your application or app. This unit is...