简体   繁体   English

计算FAT表的大小

[英]Calculate the size of FAT table

Given a disk block has the size of 4096M formatted to FAT.给定一个磁盘块的大小为 4096M,格式化为 FAT。 The size of each block is 64K.每个块的大小为 64K。 Calculate the size of the FAT table.计算 FAT 表的大小。

My solution:我的解决方案:
Number of blocks = disk size / block size = (4096 * 2^20) / (64 * 2^10) = 2^16 blocks.块数 = 磁盘大小 / 块大小 = (4096 * 2^20) / (64 * 2^10) = 2^16 个块。
Assume using FAT16, since we have 2^16 blocks -> have 2^16 entries, each entry needs to store 16 bits.假设使用 FAT16,因为我们有 2^16 个块 -> 有 2^16 个条目,每个条目需要存储 16 位。
=> Size of FAT table = 2^16 * 16 = 2^20 bits = 128KB. => FAT 表的大小 = 2^16 * 16 = 2^20 位 = 128KB。

I'm preparing for the final exam and the funny thing is that my teacher told me to self-study virtual memory so I'm not sure that my solution and explanation are correct or not.我正在准备期末考试,有趣的是我的老师让我自学虚拟 memory 所以我不确定我的解决方案和解释是否正确。 Please help me point out if I'm doing wrong.如果我做错了,请帮助我指出。 Thanks for reading.谢谢阅读。

I've already had the answer to this question and found out I was correct.我已经有了这个问题的答案,并发现我是对的。 Thank you and peace out!谢谢你,和平了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM