Category Archives: multithreading

Java: references and concurrency

The Java Language Specification guarantees that “Writes to and reads of references are always atomic, regardless of whether they are implemented as 32-bit or 64-bit values.” This is from chapter 17, section 17.7 of The Java Language Specification for Java … Continue reading

Posted in Java, multithreading | Leave a comment

Java: HashMap and concurrency

It is really surprising how many people ignore thread safety by justifying their incorrect solutions by saying “this thing is working, there are no issues and complains and it is fast”. I’ve just encountered this kind of situation: a HashMap … Continue reading

Posted in Java, multithreading | Leave a comment