Is it possible that background and foreground are in collision?

case

- foreground saves data into storage and calls onTemporaryEvent

- nobody knows when background starts but it have to read data from storage

- foreground again saves data when background still runs but no onBacktounddate yet- can be a collision?