Answers for "how to use a thread to use a method in cpp"

C++
0

what is thread in c++

sequence of instructions that can be executed concurrently
Posted by: Guest on April-09-2021
0

c++ create thread

void task1(std::string msg)
{
    std::cout << "task1 says: " << msg;
}

std::thread t1(task1, "Hello");

t1.join();
Posted by: Guest on March-20-2021

Code answers related to "how to use a thread to use a method in cpp"

Browse Popular Code Answers by Language