C++ Threadpool

C++ Threadpool

Description:

This C++ Threadpool is portable, and i think it can be used to code real-time softwares under QNX real-time OS or VxWorks real-time OS and other real-time OSs, because look at the source code it uses just static arrays and it doesn't use dynamic memory and of course it uses pthread , and i have included pthread for win32 and win64 inside the zip file.

For real-time system, please look at the Threadpool bounded queue size, it's at 10000, so in real-time systems and in pratice it's easy to avoid blocking task switches on the producer threads which makes it unusable for interrupt handlers. To simplify, use for example one producer thread and don't go beyond the size of the queue to be able to implement real-time softwares under QNX real-time OS or VxWorks real-time OS etc.

You can use it also with my C++ MemPool for real-time systems here:

https://sites.google.com/site/aminer68/c-mempool-for-real-time-systems

Please look at the example.cpp example to learn how to use this threadpool.

Language: GNU C++ and Visual C++ and C++Builder

Please click on the small arrow on the right of the zip file bellow to download...