5 ms·
Except you can have thousands of std::async threads, and at best a few dozen std::threads.
Except you can have thousands of std::async threads, and at best a few dozen std::threads.
It does not scale per the youtube talk though, the promises/futures are competing with shared resource, which is a surprise.
That's only if the implementation uses a thread pool, I think only MSVC does it, not libstdc++ or libc++ last time I checked