Messages in this thread | | | Subject | Re: Lockless file reading | From | Timo Sirainen <> | Date | Wed, 27 Aug 2003 15:52:09 +0300 |
| |
On Wed, 2003-08-27 at 15:42, Martin Konold wrote: > > The question is what can happen if I read() a file that's being > > simultaneously updated by a write() in another process? > > The behaviour is undefined.
So it's not such a good idea then? Hmh.. That'd solve a lot of problems for me.
> > 123 over XXX, is it possible that read() returns 1X3 in some conditions? > > Yes. The actual order stuff is written to the disk is not guaranteed.
It doesn't matter when it's actually written to disk, if it's only seen by read().
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |