ad

APPLICATION OF BUFFER





APPLICATION OF BUFFER
      Buffers are often used in conjunction with I/O to hardware, such as diskdrives, sending or receiving data to or from a network, or playing sound on a speaker.


DIFFERENCE BETWEEN BUFFER AND CACHE
      A cache often also acts as a buffer, and vice versa. however, a cache operates on the premise that the same data will be read from it multiple times,that  written data will soon be read,or that there is a good chance of multiple reads or writes to combine to form a single larger block. Its sole purpose is to reduce accesses to the underlying slower storage. A cache is also usually an abstraction layer that is designed to be invisible. A “Disk Cache” or “File Cache” keeps statistics on the data contained within it and commits data within a time-out period in write-back modes. A buffer does none of this. A buffer is primarily used for input,output, and sometimes very temporary storage of data that is either en route between other media or data that may be modified in a non-sequential manner before it is written (or read) in a sequential manner.

Post a Comment

0 Comments