C++ Concurrency question
287
Oct 14, 2021

How long does it take for the following function to execute?
void f()
{
async([] { cout << "TASK #1\n"; this_thread::sleep_for(1s); });
async([] { cout << "TASK #2\n"; this_thread::sleep_for(1s); });
}

Comments (0)