Parallel and high-performance computing

Several threads update a shared data structure that cannot safely handle simultaneous updates. Which mechanism directly ensures that at most one thread performs the update region at a time?