18 lines
222 B
C++
18 lines
222 B
C++
#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();
|
|
}
|