please tell me what exactly buffer is ? i have searched google.com a lot but not find what exactly it means ? what it means if i say "flushing the buffer"..? please tell me..what exactly is it ??

Edited 4 Years Ago by gourav1: n/a

In simple terms you can assume a buffer to be a temporary storage area. Think of it in this way,
suppose you bring a book from place A and give it your friend to keep it in place B. By the time your friend goes to place B ,you fetch another book from place A. Your friend is of smaller age so takes longer to return each time.Now you decide to place a table in between.Each time you get a book you place it on the table and continue with getting other books. When your friend comes back he can take the book from the table. Here the table is a buffer.
Apart from synchronizing speeds, many times buffers are used to fetch data quicker. The data that is required more frequently is placed into buffers. Disk accesses (which are slower) are thus avoided for frequently needed data.

Flushing a buffer basically means transferring data from memory to disk.

Edited 4 Years Ago by DJSAN10: n/a

In simple terms you can assume a buffer to be a temporary storage area. Think of it in this way,
suppose you bring a book from place A and give it your friend to keep it in place B. By the time your friend goes to place B ,you fetch another book from place A. Your friend is of smaller age so takes longer to return each time.Now you decide to place a table in between.Each time you get a book you place it on the table and continue with getting other books. When your friend comes back he can take the book from the table. Here the table is a buffer.
Apart from synchronizing speeds, many times buffers are used to fetch data quicker. The data that is required more frequently is placed into buffers. Disk accesses (which are slower) are thus avoided for frequently needed data.

Flushing a buffer basically means transferring data from memory to disk.

yoo! a too impressive answer! will you please tell that what is "buffered standard input stream"? in this what meant by "buffered" ?

This article has been dead for over six months. Start a new discussion instead.