Hacker News new | ask | show | jobs
by eru 86 days ago
Have look at Software Transactional Memory (as eg implemented in Haskell) for how to fix this.