Skip to content

lingxier/Threadpool_Cpp11_Async

Repository files navigation

ThreadPool-CPP11-async

介绍

一个基于C++11实现的异步线程池,可以根据任务数量动态调节线程池内线程的个数。

代码编译

  • 命令:g++ threadpool.cpp -std=c++11 -lpthread -o app
  • 执行:./app

关于编码

如果在Linux下执行提供的代码, 打印的信息可能会出现乱码,这是文件编码造成的,将文件编码修改为 utf8,再次重新编译即可看到正确输出。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages