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

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

  •  30-06-2023
  •  | 
  •  

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.

有帮助吗?

解决方案

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/.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top