Any GNU C threadpool library? (original) (raw)
Florian Weimer fweimer@redhat.com
Tue Feb 15 13:42:33 GMT 2022
- Previous message (by thread): Any GNU C threadpool library?
- Next message (by thread): Any GNU C threadpool library?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Saurav Shah via Libc-alpha:
Is there any GNU C library that supports threadpool? My project previously was developed for the QNX Neutrino platform. Now we are porting it to linux. QNX had a built-in threadpool library based on pthread.
We have a stack cache which avoids some of the mmap overhead involved in thread creation. Creating the threads themselves is fairly cheap in Linux, I think, so we do not keep them around in a separate cache. Different kernels also have different thread-associated resources, so a thread cache wouldn't be totally transparent to applications.
Thanks, Florian
- Previous message (by thread): Any GNU C threadpool library?
- Next message (by thread): Any GNU C threadpool library?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]