Quantcast
Channel: Can "mov eax,mem" occur with "lock inc mem" at the same time in multiprocessor? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Bo Persson for Can "mov eax,mem" occur with "lock inc mem" at the...

The mov EAX,[mem] is atomic, in that it reads all bits in parallel. There is no chance of getting a partial result. Whether it gets the value before or after an update is not that important.The inc...

View Article


Answer by Michael for Can "mov eax,mem" occur with "lock inc mem" at the same...

If mem is 32-bit aligned, the mov operation is guaranteed to be atomic. To quote volume 3A of the software developer's manual: "once started, the processor guarantees thatthe operation will be...

View Article

Can "mov eax,mem" occur with "lock inc mem" at the same time in multiprocessor?

in multiprocessor, we know in lock inc mem: lock can ensure no other operation can access the address mem.but when one processor is executing mov eax,mem firstly, and then before it completed, second...

View Article
Browsing all 3 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>