as you know for java threads, even if you use sync...
# coroutines
x
as you know for java threads, even if you use synchronized block you need in volotile key world for variable
e
Can you please clarify what do you mean by that? Can you give the corresponding example with the synchronized block?
x
public class Some { private int a; public synchronized void f() { a++; } }
I’ve found explanation with happens-before notation (https://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html) thank you, have no questions anymore 🙂