19 lines
245 B
C++
19 lines
245 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();
|
|
}
|