Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 527 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 527 Bytes

C_THREAD_POOL

a sample implement of thread pool in C language.

Config

cmake

If your cmake version is less than 3.29, you can try change the version to fit yours.

Thread

If your system don't support the posix thread, comment the THREADPOOL_POSIX define marco.

Pool

It's better to change the pool MAX_THREAD and MAX_TASK to fit your cpu and have the best performance.

Run

git clone ~The URL~
cd ~The Dir~
mkdir build
cd build
cmake ..
cmake --build . --config Release
./ThreadPool