How can distributed file systems ensure cache consistency?

What will be an ideal response?


There are two ways to ensure cache consistency: allow a client to invalidate its copy of
the file against the copy on the server or allow the server to issue locks to give clients exclusive write access to a file. To invalidate a file, the client checks the time stamp of the copy of
the file on the server. If it has been updated since the client last copied the file, then the client
must download the latest version. If it has not been updated, then the client can work on its
cached copy. If the server issues locks to give clients exclusive write access to a file, when
another client needs to access the file it must wait for the client holding the lock to release the
lock. The server still has ultimate control over the file and can revoke the lock when necessary.

Computer Science & Information Technology

You might also like to view...

Is there a way to write the entire contents of a numeric array in one cout statement?

What will be an ideal response?

Computer Science & Information Technology

____ is a lock option for layer components within Photoshop.

a. Lock transparent pixels b. Lock parameters c. Lock image pixels d. Lock position

Computer Science & Information Technology

Which of the following is the Ribbon path to the Cell Styles button?

A. (Home tab | Styles group) B. (Styles tab | Home group) C. (Home tab | Format group) D. (Format tab | Styles group)

Computer Science & Information Technology

?What happens when you click the Run 'app' button in Android Studio?

A. ?The Android debugger opens B. ?The Choose Device dialog box is displayed C. ?The app runs in a browser window D. ?The app runs on the device connected to the USB port

Computer Science & Information Technology