Multiple readers on FIFO
Posted
by
poly
on Programmers
See other posts from Programmers
or by poly
Published on 2012-07-27T17:21:13Z
Indexed on
2012/09/06
15:50 UTC
Read the original article
Hit count: 215
I've asked a question here before about multiple writers on a FIFO, and I know now that the write is thread safe as long as I write less than the PIPE_BIF, here is the link for that limit.
What about read? what if have two(or more) readers in multiple threads for reading from the same fifo, do I need locks here? or all I need is to read less than the PIPE_BUF?
BTW, I'm talking about Linux FIFO, And I'm using C.
© Programmers or respective owner