how does L1 and L2 cache help processor to speed up the computer performance?
The processor is sooo faster than the main memory (RAM) and the RAM is farther than the cache to the CPU core so it takes time when the processor wants something from the memory .. in this time the processor should wait the response from memory . So the CPU uses the cache to reduce the average time to access main memory If the processor requests something from cache will be better than requesting it from RAM. so ... with some Algorithm .. The processor specifies what the (things) he needs most and puts them in the cache intead of the RAM when the CPU needs some data it checks if it's found in the cache .... if so , It's OK .. If it's not so it will go to the RAM finally , try googling it or try the wiki : http://en.wikipedia.org/wiki/CPU_cache http://en.wikipedia.org/wiki/Direct_memory_access http://wiki.answers.com/Q/Explain_how_L1_cache_L2_cache_L3_cache_differ or the google answers : http://answers.google.com/answers/threadview/id/454373.html http://answers.google.com/answers/threadview/id/758626.html
thAnx a lot...:)
Join our real-time social learning platform and learn together with your friends!