Ask Your Computer Question. Computer Experts Answer You ASAP.

(Not a Computer Question?)

#1. What complications could arise in a time-sharing ...
Sent to Computer Experts April 23 04:26 PM

#1. What complications could arise in a time-sharing system if two processes require access to the same file at the same time? Are there cases in which the file manager should grant such requests? Are there cases in which the file manager should deny such requests?

Customer (name blocked for privacy)
Answer
April 23 5:45 PM (1 hour and 18 minutes and 25 seconds later)
         
ACCEPTEDCheck Mark

There are two basic problems that could occur:

1. The record is read and the reading process makes changes to the record. While those changes are being made, the record is read by a second process, which will now retrieve out-of-date information, since the update has not yet been written back to disk.

2. A variation on the scenario above is that process 1 and process 2 read the same record. Process 1 makes changes - let's say to address. Process 2 also makes changes to the phone number. Process 1 saves the record first, and then process 2 saves it. The changes that were made to address by process 1 will be overwritten by the record written by process 2 (which will contain the original address).

The file manager should grant a request for simultaneous access only when both processes have read the record and will not perform update. When the record is read for update, most file managers will lock that record so other processes cannot access it until the update is complete. Such management usually also has timeout protection so a record cannot be locked for an indefinite time.




Dave

Good answers are not free. If my answer is helpful, please click the "Accept" button (even if you paid a deposit)- this is the only way I get paid for my work. Positive feedback is also greatly appreciated.
Think you can answer this question?
Login or Become an Expert

 

DISCLAIMER: You acknowledge that any information you may obtain from individuals you contact through use of the JustAnswer service comes from those individuals, not from JustAnswer, and that JustAnswer is not in any way responsible for any of the information these third parties may supply. The site and services are provided "as is" with no warranty and no representations are made regarding the qualification of an Expert. Responses and comments on JustAnswer are for general information and are not intended to substitute for informed professional advice (such as medical, legal, investment or accounting) and do not establish a professional-client relationship. JustAnswer is not intended or designed to address EMERGENCY QUESTIONS which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service.

JustAnswer > Computer and Software Help