Who can change main memory contents besides CPU itself?

devuniv

Prominent
Aug 4, 2017
6
0
510
Who can change main memory contents besides CPU itself?

Wikipedia speaking about working of CPU caches that "data in the main memory may be changed by other entities than CPU itself (e.g. peripherals using direct memory access (DMA)".

Could you give a real-life use-case / example of this?

I thought CPU itself askes DMA to fetch some data from HDD, DMA does it for CPU and then notifies CPU that data are in main memory. But here CPU initiates it anyway.
 
Solution
Well, BIOS is there in between, than comes OS and programs themselves. So anything running in the computer keeps memory in constant state of flux . Even HW and otherwise reserved memory is being switched around to the point of it being swapped to disk. All is happening with every memory refresh but OS is tasked to keep tabs on every change and assign proper space for a program to run in.
Well, BIOS is there in between, than comes OS and programs themselves. So anything running in the computer keeps memory in constant state of flux . Even HW and otherwise reserved memory is being switched around to the point of it being swapped to disk. All is happening with every memory refresh but OS is tasked to keep tabs on every change and assign proper space for a program to run in.
 
Solution