Quoting Minkoo Seo <minkoo.seo / gmail.com>:

> Simple and best solution to these problems is to use
> synchronization whenever needed.

And following from that, use as little shared state as possible
between threads, so synchronization is needed as little as
possible.

The more synchronization you use, the harder it is to get right.

-mental