Describe how the front buffer and back buffer work together in double buffering?

The front buffer is the image that is currently being displayed on the screen. The back buffer is the image that is being drawn to by a program. These switch back and forth, (moreover the information is transferred from the back to the front buffer), which lets the program draw exclusively to back buffer, where it will not be slowed down by the screen's refresh rate, as it would be if every element were drawn directly to the screen.