* Any GNU C threadpool library?
@ 2022-02-15 11:25 Saurav Shah
2022-02-15 13:42 ` Florian Weimer
2022-02-15 19:47 ` Cristian Rodríguez
0 siblings, 2 replies; 3+ messages in thread
From: Saurav Shah @ 2022-02-15 11:25 UTC (permalink / raw)
To: libc-alpha
Hi,
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.
*Thanks*
*Saurav Shah*
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Any GNU C threadpool library?
2022-02-15 11:25 Any GNU C threadpool library? Saurav Shah
@ 2022-02-15 13:42 ` Florian Weimer
2022-02-15 19:47 ` Cristian Rodríguez
1 sibling, 0 replies; 3+ messages in thread
From: Florian Weimer @ 2022-02-15 13:42 UTC (permalink / raw)
To: Saurav Shah via Libc-alpha; +Cc: Saurav Shah
* 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Any GNU C threadpool library?
2022-02-15 11:25 Any GNU C threadpool library? Saurav Shah
2022-02-15 13:42 ` Florian Weimer
@ 2022-02-15 19:47 ` Cristian Rodríguez
1 sibling, 0 replies; 3+ messages in thread
From: Cristian Rodríguez @ 2022-02-15 19:47 UTC (permalink / raw)
To: Saurav Shah; +Cc: libc-alpha
On Tue, Feb 15, 2022 at 8:25 AM Saurav Shah via Libc-alpha
<libc-alpha@sourceware.org> wrote:
>
> Hi,
>
> 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.
No, glibc does not implement this.
TL;DR : Use libuv instead.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-15 19:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15 11:25 Any GNU C threadpool library? Saurav Shah
2022-02-15 13:42 ` Florian Weimer
2022-02-15 19:47 ` Cristian Rodríguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).