Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Reference field update operations in Java are not thread safe?


reference updates are atomic, but without volatile (or more heavyweight synchronization) there may be an arbitrary delay before the change is visible to other threads.


Thanks for that.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: