gpt4 book ai didi

operating-system - 从逻辑地址到物理地址的转换

转载 作者:行者123 更新时间:2023-12-04 15:19:41 24 4
gpt4 key购买 nike

假设一个虚拟内存配置,其页框大小为 2K,空间虚拟地址大小为 32K,物理地址空间为 16K。使用您选择的页面映射,确定与虚拟地址 0573H 对应的实际物理地址。

我是这个话题的新手。拜托,任何人都可以解释从逻辑地址映射到物理地址的简单方法吗?

最佳答案

Page size =2K=2^11

Virtual Address Space = 32K=2^15

Physical Address Space =16K=2^14

enter image description here

这里的虚拟地址是:
0573H ==> 0000 0101 0111 0011

Page# = 0000 ==>0

Page offset = 101 0111 0011 ==> 573

通过查询页表,我们可以得到这个页被分配到的帧号,并计算出实际的物理地址,如下图所示。

关于operating-system - 从逻辑地址到物理地址的转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39032348/

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