Search code examples
cmultithreadingopen-sourcepthreadsthreadpool

Existing threadpool C implementation


What open-source implementation(s) in C for a pthreads thread pool would you recommend ?

Additional points if this implementation is :

  • Light-weight: glib, APR, NSPR and others come with a big buy-in, I'd rather have just 2 files (header and implementation).
  • Tested on several platforms (Linux, BSD, Mac OS X, etc.).
  • Still maintained.

Solution

  • I worked on making something I'd be able to use and I've published it on github: it's unimaginably called threadpool.