Question about 2017 midterm exercise 3 question 2
Hi, so I wonder why under the JVM model, the println(f) result could be 0,1,2,3, while the lock.synchronized{println(f)} give a result of 3?
Thank you.
Hi, so I wonder why under the JVM model, the println(f) result could be 0,1,2,3, while the lock.synchronized{println(f)} give a result of 3?
Thank you.