转自:http://www.jb51.net/article/47553.htm
g++ * -lpthread -o test_threadpool
./test_threadpool 200 20 10 2 20
fun 1=20
fun 1=40
fun 1=60
fun 1=80
fun 1=100
fun 1=120
fun 1=140
fun 1=160
fun 1=180
total time = 14416
total num = 200 billion num=0
../main.cpp将关闭所有线程
fun 1=200