Concurrency
•
When operations of concurrent threads are
interleaved, the effect on shared state can be
unexpected
•
Well known issue in operating systems,
thread programming
–
see OS textbooks on critical section
–
Java use of synchronized keyword