The condition that occurs when a transaction or group of transactions has access to a particular resource in a distributed system and other transactions do not. For example, part of a file may be locked while a transaction updates it. If a transaction wants access to a resource that is locked, then it normally has to wait until the resource is released—usually when the transaction that is using it has completed the process it was carrying out.