What is Spooling in OS?

Article By Digamber Rawat Published on

Spooling in OS is to hold and execute the data by a device or concerned computer applications. When relevant data is available in sequence, the job is started, and it does not interfere with other tasks going on.

Spooling works on FIFO(First in /First out) algorithm which means instructions will be executed in sequence from first to last. Spooling in OS has the main application is due to slow mechanical devices which are solved by course and placement of data. The spool is where processes, instruction, and data is accumulated for execution for later use.

DigitalOcean Affiliate

Understand Spooling in OS

Spooling is entering data of various input and output devices in a particular area in hard-disk or memory to be accessed; this particular area is buffer. Without spooling in OS only one job is possible on word processors, so more tasks are managed exclusively by them

It maintains data feeding speed at its rate and maintains an orderly sequence of data for peripheral devices which are otherwise slow in their interactions with the computer program and also interfere with other tasks which is a problem without spooling.

It is most commonly used in printing as the speed of printing is affected otherwise, documents can’t be retained as formatted in sequence at the speed of the computer.

Another universal contemporary application of spooling in OS is for generating banner pages, i.e. pages used in digital printing to separate documents for identifying.

The most familiar example is when mouse or keyboard stops responding for some time if it is clicked multiple times in that hang state then later it executes input in right sequence at a rapid rate.

Digamber Rawat
Digamber Rawat

I am a software engineer from India, love to learn and write about latest web and mobile technologies like: MongoDB, Angular 2+, Firebase, Express JS, Python, Node JS, JavaScript, RxJS etc.