On 7/22/21 1:46 AM, seany wrote:[...]Correct. You must synchronize on ii.[...]This isn't valid code, because you can't append to an integer. Though I think I know what you meant. Is it thread-safe (assuming the array elements are appendable)? I think so, but I'd have to see a working example.[...]
you are right. in the pseudocode, i wanted to say: `ii[i] = somefunc(dummy);`