Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 857 Bytes

File metadata and controls

40 lines (25 loc) · 857 Bytes

ThreadPool-CPP

使用cpp实现一个接口友好, 并发安全的线程池.

运行

$ ./build.sh

结果

$ ./build.sh 
running oneProducers ThreadPool

xxx 5000000050000000

finish check oneProducers ThreadPool
=====================================================================
running multiProducers ThreadPool

x xx 5000000050000000

finish check multiProducers ThreadPool
=====================================================================
running benchmark

 oneThreadRun cost time = 78954 ms

 ThreadPool cost time = 11336 ms
finish benchmark
=====================================================================

链接博客

线程池的原理和实现