Accessing shared data from multiple threads = problems, unless...