When you ask about a more specific issue , I find this to be a key issue when people are not completely sure.
The following assumptions can be made:
volatile
Questions:
The question is NOT:
This may be considered a duplicate. In C / C ++, are there volatile variables that guarantee consistent semantics of betwen threads? and other similar questions, but I think that none of these clear requirements regarding the target architecture, which leads to a lot of confusion regarding various assumptions.
, --?
, . , - , Intel, Intel QPI, .
Wiki Intel QPI :
http://en.wikipedia.org/wiki/Intel_QuickPath_Interconnect
, ?
. , , , .
. .
, ++, . , , , "" ++.
, "". , (, , ).
, , . , ( ) . , . , , , , , , , , .
, , , .
x86/64:
. , /-.
, . , = 200 NUMA node. node, 2 node. . , +/- 50 .
60-70ns 3GHz node.
, - . , , , , , x86, . , .
, , volatile "" .
, ( ) .
() PowerPC , - volatile. , , ( ).
, , , (, , ..) , , .
volatile ++ , --. volatile, , , , ( ). - .
, . , , , , ( ..), .
, - volatile, . , , , . ( ) , , , .
++ ( , , , ), , , , , volatile. - - - , . (, , , , ).
Source: https://habr.com/ru/post/1618007/More articles:autopep8 reformat region to emacs / spacemacs - emacshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1618003/gitlab-runner-unable-to-clone-repository-via-http&usg=ALkJrhhEsJyIsWM4k4IJ4Q18x_9ejKUorAWhy does this std :: string C ++ code not give a compile-time error? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1618005/bind-emacs-evil-window-commands-to-g-prefix&usg=ALkJrhjx_WqTf6PNboDloxee9EK3B3-XHQНевозможно использовать zip из S3 для AWS Lambda - amazon-s3Using OxyPlot to render png images from PlotModel - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1618009/route-events-to-eventhub-eventprocessor&usg=ALkJrhhK90FPj4VnPeL1nz7sMZLNfzYQZgUsing decorators to test in Angular 2 with TypeScript - angularCreating a gradient map of a two-dimensional array - pythonPrint variable value indented in YAML file using inaccessible - yamlAll Articles