Hello, Diveit,
I suppose you can place the similarity of cache memory and virtual
memory in their purpose of being proxy memory, to assist RAM in
processing data. Another is when cache is used in software mode (such
as in an Internet browsers), it is variable in size. You can set the
size of cache (for programs that allow it, like Internet Explorer) and
virtual memory as well. They are also both memory that cannot be
directly accessed by the user while in operation (though you can look
in the Internet cache in Windows when nothing is loading. CPU and
mainboard cache and the Windows swap file are definitely
inaccessible). Software-based Cache and virtual memory also use hard
disk space. In one source below, virtual memory is even considered a
form of caching. Of course, in both kinds of memory, data is handled
in organized chunks before being processed all the way through.
If you are looking for differences, I guess one is that cache has
different types (Like in CPU, motherboards), while virtual memory is
just one type. Also, cache can be more of temporary storage for data
before actual processing, while virtual memory is more like spare
RAM, used after RAM resources run out.
For now these are what I can think of from the back of my head, so I
hope the sources below can give you more information:
Cache memory:
Your Traces: How does cache memory work?
http://www.cnil.fr/uk/traces/comment/uk_cache.htm
Your Traces: The challenges of cache memory
http://www.cnil.fr/uk/traces/demonst/uk_denjcach.htm
Cache memory - a search Mobile Computing definition
http://searchmobilecomputing.techtarget.com/sDefinition/0,,sid40_gci211730,00.html
Howstuffworks "How Caching Works"
http://computer.howstuffworks.com/cache.htm
6 test questions from a University of Wisconsin-Madison page
http://www.cs.wisc.edu/arch/uwarch/qualifier/s98.ca.pdf
Virtual Memory:
Howstuffworks "How Virtual Memory Works"
http://www.howstuffworks.com/virtual-memory.htm
Virtual Memory - Webopedia.com
http://www.webopedia.com/TERM/V/virtual_memory.html
Virtual Memory - a Search Storage definition
http://searchstorage.techtarget.com/sDefinition/0,,sid5_gci213300,00.html
Google search terms:
cache memory
virtual memory
cache virtual memory similarities
I hope this has been a most helpful answer. If you have any problem
with it, do please post a Request for Clarification and I shall
respond. Thank you. |