Answers for "how to creat a thread to a class function c ++"

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 creat a thread to a class function c ++"

Browse Popular Code Answers by Language