Concept Flow - Lock types (shared, exclusive)
Transaction requests lock
Check lock type requested
Shared lock?
Check existing
locks compatibility
Grant shared lock
Transaction proceeds
Transaction releases lock
A transaction requests a lock type (shared or exclusive). The system checks compatibility with existing locks and grants the lock if allowed, then the transaction proceeds and later releases the lock.