Saturday, January 31, 2015

Relationship between the CPU usage and the RAM

We all know the CPU processes stuff in memory meaning (performs all the instructions) and Ram is just a part of the memory. So when we process data, that data will be loaded in to RAM read for the cpu processing.

To make it very clear, RAM will speed up the CPU process since RAM is much faster to access compared to the storage device. So the CPU usage and the RAM correlate but don’t have to.



Let us take the situation, image editing program. So at first I will load my 30MB jpeg file, so the program now will read the entire image, the OS will keep that in RAM. So the image now will is in the RAM waiting in line to be processed, but since there is no command yet so the CPU now will not do anything until the user tells the CPU to process  the image. The CPU now goes to 100% and more memory will be used because it keeps the pre-processed image in its memory, so the user can undo the changes made, and when the program is now done adding bubbles, the CPU drops but not the memory.

No comments:

Post a Comment