There are total three types of locks in mainframe:

  • Update: It is known as permissive lock. It helps the program to read and make changes
  • Shared: With the help of this lock, locked space reads two or more programs. It doesn’t allow the changes to take place
  • Exclusive: It doesn’t let the locked space accessed.
BY Best Interview Question ON 13 Jan 2019