Are these advanced/unfair interview questions regarding Java concurrency?
- by sparc_spread
Here are some questions I've recently asked interviewees who say they know Java concurrency:
Explain the hazard of "memory visibility" - the way the JVM can reorder certain operations on variables that are unprotected by a monitor and not declared volatile, such that one thread may not see the changes made by another thread. Usually I ask this…