Computer Science: An Overview: Global Edition (12th Edition)

Published by Pearson Higher Education
ISBN 10: 1292061162
ISBN 13: 978-1-29206-116-0

Chapter 3 - Operating Systems - Chapter Review Problems - Page 165: 46

Answer

See explantion

Work Step by Step

Read action on some file means only reading the contents of that file, while write action on some file means changing the content of that file. So when multiple process access the same file and they all perform only read operation on the file, then there is no problem in doing so, as none of the process change the content of the file. On the other hand if multiple process access the same file and they all perform write operation on the file, then it can lead to inconsistency in the program as the content of the file is changes, so when some process tires to write on the current file whose data is already changed by some other process previously can lead to wrong write operating as the write operation is not done on the original file, it was done on the file which was updated by the previous process.
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.