![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多线程编程
__Ryan
非典型性程序员~
展开
-
C++11中的多线程(2)
我们计划创建5个线程,把他们放入一个vector容器中。转载 2020-11-23 11:28:04 · 414 阅读 · 0 评论 -
C++11中的多线程(1)
创建线程 #include <iostream> #include <thread> void thread_function() { std::cout << "thread function\n"; } int main() { std::thread t(&thread_function); // t starts running std::cout << "main thread\n"; t.j转载 2020-11-20 15:17:45 · 159 阅读 · 0 评论