As in many other computer architectures, in x86 memory access is fairly slow. To give you some perspectives, accessing register in CPU takes roughly .5 nano-second. Changing value in main memory take roughly 100 nano-seconds. That’s 200 times slower than usual. There is number of reason for that. Perhaps the simplest reason is that typical memory work at much lower frequencies compared to CPU. Typical CPU work at frequencies 2.5-3.5GHz while typical DRAM memory works at 1.333GHz. In additions to that, typical DRAM has to recharge it’s memory cells voltage once in awhile. So typical DRAM doesn’t actually work some of these
The post What is the use of mutex lock for integer variables appeared first on Coding Security.
What is the use of mutex lock for integer variables
read more
Tidak ada komentar:
Posting Komentar