memory-model
python threading: memory model and visibility
Does python threading expose issues of memory visibility and statement reordering as Java does? Since I can\'t find any reference to a \"Python Memory Model\" or anything like that, despite the fact t[详细]
2023-01-13 05:37 分类:问答Does the Java Memory Model (JSR-133) imply that entering a monitor flushes the CPU data cache(s)?
There is something that bugs me with the Java memory model (if i even understand everything correctly). If there are two threads A and B, there are no guarantees that B will ever see a value written b[详细]
2023-01-03 12:07 分类:问答Peterson algorithm in Java?
Is there example implementation of Peterson algorithm for mutual exclusio开发者_如何学Cn in Java?No one here has provided a correct/safe implementation of this algorithm in Java. I\'m not sure how Joh[详细]
2023-01-01 15:27 分类:问答C++0x memory model and speculative loads/stores
So I was reading about the memory model that is part of the upcoming C++0x standard. However, I\'m a bit confused about some of the restrictions for what the compiler is allowed to do, specifically ab[详细]
2022-12-15 05:28 分类:问答Thread.VolatileRead Implementation
I\'m looking at the implementation of the VolatileRead/VolatileWrite methods (using Reflector), and i\'m puzzled by something.[详细]
2022-12-11 21:38 分类:问答Using memory barriers
In the following code sample, does the memory barrier in FuncA is required to ensure that the most up-to-date value is read?[详细]
2022-12-11 14:49 分类:问答Memory barriers and large structs?
Let\'s say I\'ve got a struct that consist of 100 bytes. What guarantees have I got about the following code?[详细]
2022-12-11 04:15 分类:问答Can a thread observe junk values in an object due to memory incoherency?
After a lot of research I believe I understand the JMM quite well, certainly well enough to know that when an object is shared between two threads you must synchronize all access on the same monitor.I[详细]
2022-12-11 04:02 分类:问答Does Interlocked.CompareExchange use a memory barrier?
I\'m reading Joe Duffy\'s post a开发者_运维知识库bout Volatile reads and writes, and timeliness, and i\'m trying to understand something about the last code sample in the post:[详细]
2022-12-08 14:22 分类:问答