Hi all,

If I write a block of data into a fifo from userspace, am I guaranteed that 
the whole block will be written before that process is interrupted and my 
realtime thread tries to read from the fifo? The block is relatively small 
(< 100 bytes) but it does not seem like that should matter.

The reason this matters is because I want to be sure that I read the data 
in blocks of the appropriate size and don't lose track of record boundaries.

If the above is not guaranteed, what is the easiest way of making sure that 
I get all my data in blocks of the appropriate size?

Thanks,

Pablo Alvarez

-------------------------------------------------------------------
Pablo Alvarez, Ph.D.                       Phone: (617) 353-1423
Laboratory for Cognitive Neurobiology     Fax:   (617) 353-1414
Dept. of Psychology                        email: [EMAIL PROTECTED]
Boston University
64 Cummington Street
Boston,  MA 02215, USA
-------------------------------------------------------------------

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to