IT lexicon › Database › Concurrent access

Concurrent access

Database På svenska → Updated: 2026-11-10

The problem of safely allowing multiple processes to read and write the same data at the same time without corrupting it.

A classic database hazard: two customers withdraw $100 from the same account in the same millisecond. Without controls, both might succeed — or the balance ends up negative. Early DBMS solved this with pessimistic locking (block everyone else until one write finishes) or timestamp-based approaches (each transaction gets a sequence number, conflicts are resolved by order).

Modern systems often use MVCC: multiple versions of each row exist simultaneously, each transaction reads a consistent snapshot, and conflicts are only detected when they actually overlap. This is faster than locking but demands more memory.

← Back to the lexicon