What types of locks can be used in COBOL file handling to prevent concurrent access conflicts?

  • Exclusive locks and Shared locks
  • Primary locks and Secondary locks
  • Read-only locks and Write-only locks
  • Record-level locks and File-level locks
COBOL file handling supports two types of locks: Exclusive locks, which allow only one program to access the file at a time, and Shared locks, which permit multiple programs to access the file concurrently for reading purposes.
Add your answer
Loading...

Leave a comment

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