0
How can I make a volatile array?
Tip: "It's possible to make an array volatile" I want to know how can I do this. Edit: What's its functions and advantages?
2 Antworten
+ 2
You can see this link
https://javarevisited.blogspot.com/2017/01/can-we-make-array-volatile-in-java.html
+ 1
Use an AtomicReferenceArray.
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReferenceArray.html