[lkml]   [2003]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Lockless file reading
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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:48    [W:0.154 / U:4.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site