[ELI5] What exactly is a buffer in Computer Science?

796 views

I’ve always been confused with buffer for I’ve heard the term in many realms including programming (nodejs) and operating systems; plus, “buffering” in video players.

So, is it the same “buffer” everywhere? I mean is it a standard of some kind because it’s been used in many technologies related to computer science.

In: Technology

6 Answers

Anonymous 0 Comments

Think of it like a temporary place to put things that need to be worked on or processed. Like a to-do pile of work on your desk. Instead of just doing work the moment it’s given to you, you have people put it in a folder on your desk so you can work on everything at a steady pace.

For videos for example, the rate at which you download a file may fluctuate but if the playback of that video did too it would be very awkward to watch. A buffer is a temporary storage place for some of that video so the downloading process can put it somewhere as it comes in and the playback process can play it at a steady rate.

You are viewing 1 out of 6 answers, click here to view all answers.