next up previous contents index
Next: Strict Reading Up: Reading Previous: Pessimistic Reading   Contents   Index

Optimistic Reading

If, on the other hand, $CT \! B$$<$0 then the client is satisfied with f if it was consistent at least no longer ago than specified by the time bound. In the example with $CT \! B$=-2 hours (back), the read succeeds because f was consistent sometime within the last two hours, namely one hour ago at 9.00.

With $CT \! B$=-$\frac{1}{2}$ hour, a new consistency check is required because f cannot be guaranteed to have been consistent half an hour ago at 9.30. If it has not been updated on the server (by another client) since 9.00 then it (the cached file) can be used, otherwise a new copy is required (either way $CT$ and $CCT$ can be set to 10.00). If obtaining a new copy is necessary and that fails then the open fails.

Using $CT \! B$$<$0 the client is optimistic. The more negative the $CT \! B$ the higher the level of optimism.