Friday, September 30, 2022

[FIXED] What is the use of AtomicReferenceArray?

Issue

When is it a good idea to use AtomicReferenceArray? Please explain with an example.


Solution

looks like it's functionally equivalent to AtomicReference[], occupying a little less memory though.

So it's useful when you need more than a million atomic references - can't think of any use case.



Answered By - irreputable
Answer Checked By - Candace Johnson (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.