- Expert Delphi
- Pawe? G?owacki
- 199字
- 2021-07-02 20:44:25
Parallel Programming Library
Writing multithreaded code is considered to be one of the most difficult things in programming. Debugging multithreaded apps is even more difficult. When an operating system starts an app, it creates an operating process for it. In each process, there could be one or more threads running. Processors that power mobile devices typically have multiple cores. This means that there could be multiple threads executing in parallel on each core. A typical app executes in one thread, which runs on just one processor core. All other cores do nothing.
Since the very early versions of Delphi, there is a TThread class that represents the concept of the operating system thread. PPL provides the concept of TTask, which is more abstract than a thread and makes it easier to write multithreaded code. The very first thing to do in order to use PPL is to add a System.Threading unit to the uses clause of your program. Instead of creating threads directly, the library maintains on behalf of the app a self-tuning pool of threads that are used to execute tasks. Tasks can be easily synchronized. There are methods to wait for any or all tasks to complete.
- Python程序設(shè)計教程(第2版)
- Instant Testing with CasperJS
- Building a Home Security System with Raspberry Pi
- Game Programming Using Qt Beginner's Guide
- Learning Bayesian Models with R
- 數(shù)據(jù)結(jié)構(gòu)習(xí)題精解(C語言實現(xiàn)+微課視頻)
- 零基礎(chǔ)學(xué)MQL:基于EA的自動化交易編程
- Flash CS6中文版應(yīng)用教程(第三版)
- Big Data Analytics
- BeagleBone Black Cookbook
- Learning Continuous Integration with TeamCity
- Extending Unity with Editor Scripting
- 企業(yè)級Java現(xiàn)代化:寫給開發(fā)者的云原生簡明指南
- Learning NHibernate 4
- Puppet Cookbook(Third Edition)