Check out example codes for "differnce between spooling and buffering". It will help you in understanding the concepts better.

Code Example 1

Spooling overlaps the input and output of one job
with the computation of another job.
Buffering on other hand overlaps the input and output 
of one job with the computation of the same job.

Learn ReactJs, React Native from akashmittal.com