pipes - reading buffer less than PIPE_BUF is atomic operation?
Hi !
I read that writing to pipe buffer less that PIPE_BUFF made in atomic opreation. Does the same apply to reading from pipe ? I want to use pipe with one writer and multiple reader and want to make sure that pipes does the work without that i need to use semaphore betweent the readers. Thanks ! Gal. |
Quote:
Quote:
I'd recommend using a UNIX-domain socket (also called "filesystem socket" or "local socket") instead. You can read about pipes and UNIX-domain socket in this PDF. |
Quote:
Thank you very much Hko. I found the pdf file very interesting. Regards, Gal. |
All times are GMT -5. The time now is 12:31 AM. |