我正在 cppreference.com 上阅读 std::async 的描述。第一个描述说:
模板函数 async 异步运行函数 f (可能在一个单独的线程中,该线程可能是线程池的一部分)并返回一个 std::future ,它最终将保存该函数调用的结果。
。[cpp参考链接]:std::async
cppreference.com所说的线程池是什么?
我阅读了标准草案 N4713 (C++ 17),但没有提到可能的线程池用法。我还知道目前标准 C++ 中还没有线程池。
c++ multithreading asynchronous threadpool
asynchronous ×1
c++ ×1
multithreading ×1
threadpool ×1