In the previous section, we saw how handy it is to take advantage of modern language features such as anonymous methods. This kind of feature may, at first sight, leave the developer with the idea they have no practical implications on existing code. But the TThread case obviously proves that making use of an anonymous method provides a concise, functional, effective, and simple-to-use alternative to address the same problem.
With Delphi XE7 (September 2014), a new library has been added to the Delphi RTL (and so is, available both from VCL and FMX)—the Parallel Programming Library (PPL), mostly centered on the System.Threading unit.
Modern computers (including mobile devices) have multi-core CPUs. Modern software applications have a growing demand for multi-threaded code (for a number of reasons, some of which we have discussed earlier in this chapter). Modern language features (introduced with Delphi 2010, August 2009) offer a...