Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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
Posted
Updated 3-Apr-16 1:00am

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:
 
Share this answer
 
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...
 
Share this answer
 
Comments
MYQueries1 3-Apr-16 6:49am    
Which component helps in loading that file into the memory?
Kornfeld Eliyahu Peter 3-Apr-16 7:08am    
The disk controller unit - which accessed by the driver (or low level BIOS too) from the OS and your application talks to that driver from the code according to the language you are using...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900