- Hands-On System Programming with C++
- Dr. Rian Quinn
- 167字
- 2021-07-02 14:42:35
Threading
Threads provide a system programmer with a means to perform parallel execution. Specifically, a thread is a unit of execution that the operating system schedules when it deems appropriate. Both C++ and POSIX provide APIs for working with threads, with the C++ APIs arguably being easier to work with.
It should be noted that, under the hood, C++ leverages the POSIX threads library (pthreads)—so, even though C++ provides a set of APIs for working with threads, in the end, POSIX threads are responsible for threading in all cases.
The reason for this is simple. POSIX defines the interface a program leverages to talk to the operating system. In this case, if you wish to tell the operating system to create a thread, you must do so by leveraging the APIs defined by the operating system. If the operating system is POSIX-compliant, those interfaces are POSIX, regardless of any abstractions that might be put in place to make working with the APIs easier.
- 大數據技術基礎
- MongoDB管理與開發精要
- Modern Programming: Object Oriented Programming and Best Practices
- 醫療大數據挖掘與可視化
- UDK iOS Game Development Beginner's Guide
- Mockito Cookbook
- Hadoop大數據實戰權威指南(第2版)
- 數據科學工程實踐:用戶行為分析與建模、A/B實驗、SQLFlow
- Python數據分析與挖掘實戰(第3版)
- IPython Interactive Computing and Visualization Cookbook(Second Edition)
- Access數據庫開發從入門到精通
- 機器學習:實用案例解析
- 實現領域驅動設計
- 算法設計與分析
- PostgreSQL高可用實戰