Your COBOL program manages a customer database, and you want to implement file locking for concurrent access. What factors should you consider when choosing between record-level and file-level locking?

  • Data consistency needs
  • Database size
  • Performance requirements
  • Transaction complexity
When choosing between record-level and file-level locking in a COBOL program managing a customer database, factors like data consistency needs should be considered. File-level locking ensures consistent access to the entire file, while record-level locking provides more granular control but may require additional management of locks.
Add your answer
Loading...

Leave a comment

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