gpt4 book ai didi

memory - 为什么 RAM 是 2 的幂?

转载 作者:行者123 更新时间:2023-12-04 20:08:29 24 4
gpt4 key购买 nike

为什么 RAM 的数量总是 2 的幂?

512、1024等

具体来说,Android模拟器使用512、768、1024 RAM有什么区别?

最佳答案

Memory is closely tied to the CPU, so making their size a power of twomeans that multiple modules can be packed requiring a minimum of logicin order to switch between them; only a few bits from the end need tobe checked (since the binary representation of the size is 1000...0000regardless of its size) instead of many more bits were it not a powerof two.

Hard drives are not tied to the CPU and not packed in the same manner,so exactness of their size is not required.


来自 https://superuser.com/questions/235030/why-are-ram-size-usually-in-powers-of-2-512-mb-1-2-4-8-gb
正如 BrajeshKumar 在对 OP 的评论中所引用的那样。谢谢布拉杰什!

关于memory - 为什么 RAM 是 2 的幂?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22096327/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com