Buffering And Spooling In Operating System

Explain Buffering And  Spooling,What Is Buffering, Explain Spolling, What are the advantages of spooling and buffering

In This Topic & Blog Having Any Query Then Post your Comment and Suggestion Below

BufferingAnother solution to the slowness of input – output
devices was buffering. If offline operation after the data
has been read and the CPU is operated on it the
magnetic tapes are instructed to store the next input into
some reserve memory area called buffer. The time taken
to complete a job is faster but the CPU is more utilized
as the access time from memory to the CPU is faster
than access time from any I/O device to the CPU.
Buffering is an attempt to make the CPU and I/O
devices busy all the time.



Spooling
• The expansion of spooling is Simultaneous peripheral
operations on-line. Simultaneous means for example if two or
more users issue the print command, and the printer can
accept the requests even the printer printing some other jobs.
The printer printing one job at the same time the ‘spool disk’
can load some other jobs.
• ‘Spool disk’ is a temporary buffer; it can read data from
secondary storage devices directly. Simultaneously the CPU
executing some other job in the spool disk, at the same time
the printer printing the third job. So three jobs are running
simultaneously.
Spooling
• Uses disk as a large buffer for outputting data to
line printers and other devices.
• Can also be used for input, but is general used for
output.
• Use to prevent two users from alternatively
printing lines to the line printer on the same page.
• Helps in reducing idle time and overlapping I/O
and CPU.


What are the advantages of spooling and buffering

Buffering overlaps I/O of a job with job’s computations.
Spooling overlaps I/O one job with computations of other
jobs. Further with spooling, computer can select a mix of jobs
from a pool of jobs so that I/O and computation are nearly
always going one increasing system efficiently, and reducing
idle time.


Labels: