When should you use record-level locking as opposed to file-level locking in a COBOL application?

  • When multiple users need to access different records within the same file concurrently
  • When only one user is expected to access the file at a time
  • When the file is read-only and no updates are required
  • When the file is small and doesn't require any locking
Record-level locking in COBOL is preferred when multiple users need to access different records within the same file concurrently. This approach allows for more granular control over the locking mechanism, reducing contention and improving system efficiency.
Add your answer
Loading...

Leave a comment

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