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