What is virtual memory? – Gary explains

I will be publishing an article and video soon on Virtual Memory, this is a thread to talk about Virtual Memory and allow me to try and answer any questions that might have come up as a result of the video and article.

Here is the article description:

Before virtual reality and virtual currency there was virtual memory. Windows has it, iOS has it and so does Android. What is it and how does it work?

Sir,
I want to know what is
difference between RAM & ROM ?
1.Why is ram is coslty and rom is cheaper than ram?
2.Why Data is wipe out from RAM and not from ROM after power off ?
3. Is there any internal difference in architecture of both ?
Please explain it as soon as possible.
By the way i am from India and love to watch your videos.

ROM is basically a permanent storage mechanism which doesn't require power to keep its data. There are lots of different ways of making ROM, but today's most common ROM is Flash memory. That is memory that is programmed with data and then it can be erased by applying power in a special way and then rewriting it again.

RAM is temporary, it needs power to keep its data. When the power goes the data goes. RAM can be written to and read from quickly and constantly. The CPU tells the RAM that it would like to write to a location and then it sends the data to that location. The RAM keeps that data in that location until either the CPU changes it or the power is switched off.

The best way to stay connected to the Android pulse everywhere. Our new app contains all the top Android news, reviews, app & games and the best deals just for you. Now with Disqus profile integration.