Friday, January 20, 2012

Understanding the cache and buffer memory

Hello visitor this time I am posting about the notion that shares that may have been a lot of friends who ask what is cached and what is a buffer memory? of these questions I will let you know what the notion of cache and memory buffers.

Here the notion of cache and memory buffers.

The Cache and buffer, both of which are indeed a form of memory, but have different functions. The following explanations more he said.


Cache is a form of memory that is used to accelerate a process access to the data. A type of Memory is a temporary storage and can be easily updated with new order quickly. Why Cache can speed up the process of data access? Because the data is the data accessed is stored in specific directories and will be refreshed at any time. Well, when we are going to access the data back, no need to take back from its original storage location, but rather to a temporary shelter.

Real examples of the application is when we open the page of the site on the Internet, then the page will be saved into a folder on the hard disk of our computer. Exactly where? Inside the folder of the Web browser program that we use. One time we access back to those sites, then we will be redirected to the server cache, rather than to save page of the site is Webyang. So the process becomes faster access.

Another example of the application cache is when we run a program or application "weight". There is the same command and in access berkali kali. To speed up the process, the command is the command no longer fit in RAM (Random Access Memory), but rather in chip microprocessor khususdi offal. This particular Chip is often referred to as the L2 cache. Then the process command access is no longer of RAM into the processor but instead directly from the program to the processor. If there's any L2 cache L1 cache, there are certainly how afungsinya? L1 cache used to store the command command basic computing, especially a command that is mathematically.

Recent phenomenon in the caching mechanism is started the popularity of the live Linux CD. The operating system does not need to be installed, but rather read from the CD ROM as read from the CD ROM DRIVE operating system Live instantly loaded (load) into RAM. Furthermore, when we work with these operating systems are no longer of CD ROM but rather of RAM so the process becomes faster.

In addition to the rapid refresh, the nature of the cache is temporary (volatile) So there is no utility power, the media cache, then the data in it will be deleted yangada. Then if we're working with a Linux live CD misalya, the work must be stored in the hard disk so that it doesn't get lost.

How is the case with memory buffer? As the name implies this function to support memory work between different hardware as well as between applications/programs that have different or have priority kcepatan ekskusi different orders. For example when we did the recording data on a CD (burnibg) which involves the processor, RAM, CD Writer, as well as software, the CD recorder. Thanks to the mechanism of buffer memory, a single application or hardware device is not perlumenunggu or delayed kerjannya.

Departing from the important buffer mechanism in the application, then when the Programmer to design and write programs, consideration of the allocation buffer is crucial. Programming flaws that often utilized for crimes is via the method buffer overflow, flooding the program with the command buffer in the chain until the program is not able to accommodate orders and a crash.

such postings from me at a glance, may be useful for the visitors, and thank you for your visit ....

0 komentar:

Post a Comment

Hello, visitors please fill your comments here.

thank you !

regards, Rikies.