Software Transactional Memory (STM) prevents race conditions by allowing concurrent operations to run speculatively, then committing or rolling back transactions if conflicts are detected, notably used in Haskell and Clojure.
Open the full topic