2PL is considered pessimistic because we assume there will be conflicts and address it by locking resources. On the other hand, T/O optimistically assumes the best and only checks for conflicts at the end of the transaction.
2PL is considered pessimistic because we assume there will be conflicts and address it by locking resources. On the other hand, T/O optimistically assumes the best and only checks for conflicts at the end of the transaction.