Diff between Buffering and Spooling

Discussion in 'Operating System' started by karthik537, Apr 25, 2010.

  1. karthik537

    karthik537 New Member

    Joined:
    Apr 25, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Dear all,

    What is the difference between buffering and spooling? Though referred the Operating System concepts book by Silberschatz I didnt get.... Please explain me clearly....

    It was mentioned that...

    Buffering overlaps the I/O of a job with its own computation where as Spooling overlaps the I/O of one job with the computation of other jobs.

    still...i didnt get... kindly explain in detail
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Say you are seeing a video file which can be broken into 2 tasks. 1. Loading the part of the whole file into the memory and 2. Display it.

    Now when the loading overlaps with the I/O its buffering.

    Spooling is Say you are trying to print a document but your PC can print the job much faster than the actual hardware can complete the job and so your PC cannot wait for the job to complete and so it spools the complete job and return back to some other work and that may be saving the file or other thing.
     
  3. Myfreelancepaul

    Myfreelancepaul New Member

    Joined:
    Jun 11, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Buffering is a method of overlapping the computation of a job with its execution. It temporarily stores input or output data in an attempt to better match the speeds of two devices such as a fast CPU and a slow disk drive. If, for example, the CPU writes information to the buffer, it can continue in its computation while the disk drive stores the information.

    With spooling, the disk is used as a very large buffer. Usually complete jobs are queued on disk to be completed later. A typical example is the spooler for a printer. When a print job is issued, the spooler takes care of it, sending it to the printer if it is not busy, or storing it on disk otherwise.

    The main difference between buffering and spooling is that the latter allows the I/O of one job to overlap the computation of another. Buffering only allows the I/O of a job to overlap with its own computation.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice