#race-condition

TOCTOU vs Dirty Read

Race conditions in Ruby what they are and how to avoid them