Is accessing different key/value pairs in associative array simultaneously multi-cpu safe?

StackOverflow https://stackoverflow.com/questions/22953967

  •  30-06-2023
  •  | 
  •  

Question

From Brendan's post: DTrace variable types, I know accessing associative array simultaneously isn't multi-cpu safe.Is accessing different key/value pairs in associative array simultaneously multi-cpu safe? Or it is also not multi-cpu safe.

Was it helpful?

Solution

According to Adam's answer: "Accessing elements with different tuple keys is safe. Further, thread-local associative arrays are allowed -- though obviously serve a different purpose.". For detailed information, you can refer this link:http://www.listbox.com/member/archive/184261/2014/04/sort/time/page/1/entry/11:12/20140410014249:EB3CCA90-C072-11E3-8189-9F9034AA57AC/.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top