When implementing file locking, the _______ and _______ modes are used to specify the type of access allowed to files.

  • Open, Close
  • Read, Write
  • Sequential, Indexed
  • Shared, Exclusive
In COBOL, file locking mechanisms utilize two modes: Shared and Exclusive. Shared mode allows multiple users to read the file simultaneously, while Exclusive mode grants exclusive access to a single user for both reading and writing operations. These modes help control access and prevent conflicts among concurrent users.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *