Total WebSite Views Count

Buffering Caching and Spooling

Spooling: 

  • Acronym of  “Simultaneous Peripheral Operation On-Line”.
  • Its a process of placing data  in temporary working  area for another  program to process.
  • E.g: Print spooling and Mail spools etc.
  • When there is a resource (like printer)  to be accessed by two or more processes(or devices), there spooling comes handy to schedule the tasks. Data from each process is put on the spool (print queue) and processed in FIFO(first in first out)  manner.
  • With spooling all process can access the resource without waiting.
  • After writing the data on spool, process can perform other tasks. And printing process operates seperately.
  • Without spooling, process would be tied up until the printing finished.
  • Spooling is useful for the devices which have differing data access rate. Used mainly when processes share some resource and needed to have synchronization.
Buffering:
  • Preloading data into a reserved area of memory (the buffer).
  • 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.
  • Buffer may be used in between when moving data between two processes within a computer. Data is stored in buffer as it is retrieved from one processes or just before it is sent to another process.
  • With spooling, the disk is used as a very large buffer. Usually complete jobs are queued on disk to be completed later.
  • It is mostly used for input, output, and sometimes temporary storage of data either when transfer of data takes place or data that may be modified in a non-sequential manner.
Caching:
  • Caching transparently stores data in component called Cache, so that future request for that data can be served faster.
  • A special high-speed storage mechanism. It can be either a reserved section of main memory or an independent high-speed storage device.
  • The data that is stored within a cache might be values that have been computed earlier or duplicates of original values that are stored elsewhere.
  • E.g: Memory Caching, Disk Caching, Web Caching(used in browser), Database Caching etc.
  • A cache’s sole purpose is to reduce accesses to the underlying slower storage.
NOTE:
  1. All three enhances performance and makes system faster.
  2. Caching usually used as a buffer.
  3. Spooling is better than buffering ( Buffering overlaps input, output and processing of a single job whereas Spooling allows CPU to overlap
    the input of one job with the computation and output of other jobs).

AWS Services

AWS Services

Technology Selection & Evaluation Criteria

Technology Selection & Evaluation Criteria

Scale Cube - Scale In X Y Z Cube

Scale Cube - Scale In X Y Z Cube

Feature Post

AWS Services

About Me

About Me

Spring Cloud

Spring Cloud
Spring Cloud

Spring Cloud +mCloud Native + Big Data Archittect

Spring Cloud +mCloud Native + Big Data Archittect

ACID Transaction

ACID Transaction

Data Pipe Line Stack

Data Pipe Line Stack

Popular Posts