Answers for "thread in cpp gfg"

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

Browse Popular Code Answers by Language