4G内存,4G是什么含义
4G内存,4G指的是有4G个地址空间,还是指内存的大小为4GB。
[解决办法]
内存的大小为4GB
[解决办法]
地址空间是虚拟内存,主要用于进程之间的相互隔离,从而保证系统运行的安全性、稳定性。而4G内存是由实实在在的物理内存单元构成的。
[解决办法]
看了半天 4GB=4*1024MB=4*1024*1024KB=4*1024*1024*1024BYTE=2^2*2^10*2^10*2^10=2^32
2的32次方个不同状态表示了2的32次方个不同地址 也就是说32位地址总线寻址范围为4GB
[解决办法]
4G内存中的4G就是2的32次方的意思:
1K = 1024 = 2^10
1M = 1K * 1K = 2^20
1G = 1K * 1M = 2^30
2^32 = 2^2 * 2^30 = 4G
写到这里不由得想起那个经典的笑话:
程序员某甲向程序员某乙借钱。
某甲:某乙,请借我1000块钱吧。
某乙:行,要么干脆再多借你24块,凑个整?
某甲:有道理哦。
[解决办法]
Beginning with P6 family processors, the IA-32 architecture supports addressing of up to 64 GBytes (2^36 bytes) of physical memory. A program or task could not address locations in this address space directly. Instead, it addresses individual linear address spaces of up to 4 GBytes that mapped to 64-GByte physical address space through a virtual memory management mechanism. Using this mechanism, an oper-ating system can enable a program to switch 4-GByte linear address spaces within 64-GByte physical address space.
[解决办法]