Join Slack
Powered by
as you know for java threads, even if you use sync...
# coroutines
x
xanderblinov
08/26/2017, 2:42 PM
as you know for java threads, even if you use synchronized block you need in volotile key world for variable
e
elizarov
08/26/2017, 7:47 PM
Can you please clarify what do you mean by that? Can you give the corresponding example with the synchronized block?
x
xanderblinov
08/27/2017, 3:56 PM
public class Some { private int a; public synchronized void f() { a++; } }
xanderblinov
08/27/2017, 4:02 PM
I’ve found explanation with happens-before notation (
https://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html
) thank you, have no questions anymore 🙂
6
Views
Open in Slack
Previous
Next