C++11多线程编程 绪论及总结

版权声明:欢迎传播,请标明出处。 https://blog.csdn.net/u201011221/article/details/83718079

C++11多线程编程 这一系列文章是从 https://thispointer.com/c11-multithreading-tutorial-series/ 转过来的, 本来想翻译一下, 但看了些内容, 用词都不难, 读英文没有太大难度, 翻译过来反而怕用词不准画蛇添足, 所以干脆直接转过来了. 这一系列是程序猿学英语挺好的示例. 

对一些章节有些感触或看法, 会在内容最后标出, 仅供参考.

1. C++11多线程编程 第一章: 创建线程的三种不同方式

https://blog.csdn.net/oncealong/article/details/83716421

2. C++11多线程编程 第二章: join 和 detach 线程

https://blog.csdn.net/oncealong/article/details/83716460

3. C++11多线程编程 第三章: 如何向线程传参

https://blog.csdn.net/oncealong/article/details/83716790

4. C++11多线程编程 第四章: 共享数据和竞态条件

https://blog.csdn.net/oncealong/article/details/83716990

5. C++11多线程编程 第五章: 使用锁来解决竟态条件

https://blog.csdn.net/oncealong/article/details/83717049

6. C++11多线程编程 第六章: 多线程之间的事件处理

https://blog.csdn.net/oncealong/article/details/83717135

7. C++11多线程编程 第七章: 条件变量及其使用方法

https://blog.csdn.net/oncealong/article/details/83717237

8. C++11多线程编程 第八章: 使用 std::future std::promise 更优雅的获取线程返回值

https://blog.csdn.net/oncealong/article/details/83717417

9. C++11多线程编程 第九章: std::async 更更优雅的写多线程

https://blog.csdn.net/oncealong/article/details/83717845

10. C++11多线程编程 第九章: 使用packaged_task让同步函数异步执行

https://blog.csdn.net/oncealong/article/details/83718049

感受:

感觉C++二十年不发威, 一发威就把过去二十年的威力都带出来了.

JAVA发展了这么多年, 还没有async语法, C++这一下future/promise/async/packaged_task都出来了.

而且现在C++14, C++17雨后春笋般的冒出来.

从C++11到现在, 7年过去了, 工业界终于把其作为标配了. 不知道C++17 什么时候能作为标配.

不过对程序猿来说, 算是好事, 程序猿本就是一个知识快速更新的行业, 早点掌握, 就比别人更早具有竞争力一些.

变化不大的语言中,  大牛肯定会是最先投入的那批, 后来者很难超越.

加油, 共勉.

猜你喜欢

转载自blog.csdn.net/u201011221/article/details/83718079