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 ...

Get Delphi Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.