数据如何从HDD传输到RAM? [英] How data transferred from HDD to RAM?

查看:130
本文介绍了数据如何从HDD传输到RAM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道RAM中的东西是由处理器运行的。谁负责将数据从HDD放入RAM。是CPU吗?如果是,这意味着处理器将再次执行该任务?我有点困惑可以解释一下吗?



提前致谢



我有什么试过:



我们知道RAM中的东西是由处理器运行的。谁负责将数据从HDD放入RAM。是CPU吗?如果是,这意味着处理器将再次执行该任务?我有点困惑可以解释吗?



先谢谢

解决方案

实际上?大量的东西,包括许多其他处理器...

HDD数据本身存储在磁位中,磁头由磁头读取,磁头浮动在旋转表面上方一小段距离磁盘:磁头表面磁性的微小变化由磁头检测并解释为1和0。 (这里通常至少涉及一个处理器)

将零和零组织成字节,扇区和磁道,它们被构建到HDD内部的RAM缓冲区中(通过另一个处理器,经常)并按照要求将其传送到数据总线(通常是PATA或SATA),然后通过另一个处理器将其传送到CPU并通过驱动程序软件存储在RAM中,驱动程序软件从接口缓冲区读取它。



复杂吗?是。当你深入了解它时会非常复杂(如果你开始进入细节会有更多的复杂性 - 这只是一个简化的,掩盖了发生的事情的版本)。如果您需要更多详细信息,请从此处开始:硬盘的工作原理HowStuffWorks [ ^ ]

然后继续阅读本概述:您需要知道的关于串行的一切ATA - 硬件秘密 [ ^ ]在startign之前获取一些细节!



但就你的应用而言:File.ReadAllBytes会做到这一点全都是你的! :笑:


从存储(磁盘)到内存的数据加载是应用程序 ...

当你打开一个文件并进行一些读取过程时,你实际上将一些文件加载​​到一个内存结构中......

CPU本身无法访问存储,只有存储器...

As we know that what are the things in the RAM are taken by the Processor to RUN. Who takes up the task of putting the data from HDD to RAM. Is it CPU? If yes It means again the Processor will do that task? I am bit confused can any on explain?

Thanks in Advance

What I have tried:

As we know that what are the things in the RAM are taken by the Processor to RUN. Who takes up the task of putting the data from HDD to RAM. Is it CPU? If yes It means again the Processor will do that task? I am bit confused can any on explain?

Thanks in Advance

解决方案

Physically? Loads of things, including a whole number of other processors...
The HDD data itself is stored in magnetic bits, which are read by a magnetic head which floats a tiny distance above the surface of a spinning disk: small changes in the magnetism of the disk surface are detected by the head and interpreted as ones and zeros. (There is usually at least one processor involved here)
The ones and zeros are organised into bytes, sectors, and tracks which are built up into a RAM buffer inside the HDD (by another processor, quite often) and transferred onto a databus (PATA or SATA normally) as requested where they are picked up (by yet another processor) and passed to the CPU for storage in RAM by driver software which reads it from the interface buffer.

Complicated? Yes. Horribly complicated when you get right down to it (and there is a lot more complication if you start going into the details - that is just a simplified, "glossed over" version of what happens). If you want more details, then start here: How Hard Disks Work | HowStuffWorks[^]
Then move on to this overview: Everything You Need to Know About Serial ATA - Hardware Secrets[^] before startign to goolge for some of the details!

But as far as your app is concerned: File.ReadAllBytes will do it all for you! :laugh:


What loads data from the storage (disk) to the memory is your application...
When you are opening a file and do some read process, you actually load some of that file into a memory structure...
The CPU by itself can not access the storage, but only the memory...


这篇关于数据如何从HDD传输到RAM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆