> It depends on the time between the two read.
> If they were within a few time slices the second
> one could return 0 without Tread to to the file server.
> The data coming in between the first and second
> read is (IMO) a false problem. All would go as the new data
> were arrived just after the second (true) read to the file server.

Your argument assumes no correlation between
the reads and the writes.

Maybe a test program does

        write
        read
        write
        read

Then you will fail the second read incorrectly.

Or maybe correlations between operations on different
machines will yield the same case.

It's fine to assert that playing fast and loose works for
the one case you have in mind.  It's not find to assert
that it works in general.

Russ

Reply via email to