chapter 1 code

This commit is contained in:
Bo Wang
2014-04-22 21:57:19 -04:00
parent 6e45d14431
commit 4ca3902293
2 changed files with 37 additions and 0 deletions

18
ch1/hello.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include <iostream>
#include <thread>
void hello()
{
std::cout << "Hello Concurrent World\n";
}
int main()
{
//boost::thread t([]()
std::thread t([]()
{
std::cout << "Hello Concurrent World\n";
});
t.join();
}