
多线程
恋上豆沙包
这个作者很懒,什么都没留下…
展开
-
C++11 多线程并发1
#include <iostream> #include <stdio.h> #include <thread> using namespace std; void thread_task() { cout<<" hello thread" <<endl; } int main() { thread T(threa...原创 2016-11-10 19:34:59 · 296 阅读 · 0 评论 -
c++11多线程并发2
#include #include #include #include #include #include void f1(int n) { for (int i = 0; i 5; ++i) { std::cout \n"; std::this_thread::sleep_for(std::chrono::milliseconds(10));转载 2016-11-10 19:56:47 · 299 阅读 · 0 评论