Why Shared State Breaks

Two threads, one field, and the two different ways it goes wrong.