Why spooling is necessary




















When the slower device is ready then the data in the SPOOL is loaded on to the main memory for the required operations. You can understand this concept by looking at the image below. Spooling considers the entire secondary memory as a huge buffer which can store many jobs and data for many operations. A device can be connected to many input devices which may require some operation to be done on their data. THE multiprogramming system was created in It is the process of multiprogramming.

MS-DOS supports multiprogramming to some extent. Printer spooling refers to the process of placing data in a temporary working area for another program to process. Search Google with 'spooling in printers' and have a look through the websites on the subject. There are basically four types of operating systems. Spooling in reference to a printer is when a print job is placed in a queue for printing at a later time. A spool is just something you keep sting and such on.

Spooling is doing something with that said string or wool. ANS- Batch operating system is the operating system which analyzes your input and groups them into batchs. That is data in each batch is of similar characteristics. And then it performs operation on each individual batch.

Each user program which needed to execute was called a "job". A human "operator" watched over the queue with the ability to move some jobs to the front or back, or kill a job which got hung or ran to long. The Batch operating system uses a batch file during the boot sequence, the batch file contains all of the boot info.. This means that the CPU is idle or nearly so during these relatively slow operations.

Since it is faster to read from a magnetic tape than from a deck of cards, it became common for computer centers to have one or more less powerful computers in add to there main computer. The smaller computers were used to read a decks of cards onto a tape, so that the tape would contain many batch he output from the jobs would be written to another tape which would then be removed and loaded on a less powerful computer to produce any hardcopy or other desired output.

Since the computer can now perform Input,output in parallel with computation, it became possible to have the computer read a deck of cards to a tape, drum or disk and to write out to a tape printer while it was computing.

Spooling batch systems were the first and are the simplest of the multiprogramming systems. One advantage of spooling batch systems was that the output from jobs was available as soon as the completed, rather than only after all jobs in the current cycle were finished.

Log in. So, all of these input devices may put their data onto the secondary memory SPOOL , which can then be executed one by one by the device. This will make sure that the CPU is not idle at any time. So, we can say that Spooling is a combination of buffering and queuing. After the CPU generates some output, this output is first saved in the main memory.

This output is transferred to the secondary memory from the main memory, and from there, the output is sent to the respective output devices. Example of Spooling The biggest example of Spooling is printing. Such operations take a long time to finish executing, so the CPU will not wait for them to finish.

CPU in the idle state is not considered very efficient. Most protocols are created to utilize the CPU efficiently in the minimum amount of time. In spooling, the CPU is kept busy most of the time and only goes to the idle state when the queue is exhausted. So, all the tasks are added to the queue, and the CPU will finish all those tasks and then go into the idle state.

Disadvantages of Spooling In an operating system, spooling has the following disadvantages, such as: Spooling requires a large amount of storage depending on the number of requests made by the input and the number of input devices connected.

Because the SPOOL is created in the secondary storage, having many input devices working simultaneously may take up a lot of space on the secondary storage and thus increase disk traffic. This results in the disk getting slower and slower as the traffic increases more and more.

Spooling is used for copying and executing data from a slower device to a faster device. This process in itself makes Spooling futile to use in real-time environments where we need real-time results from the CPU.

This is because the input device is slower and thus produces its data at a slower pace while the CPU can operate faster, so it moves on to the next process in the queue. This is why the final result or output is produced at a later time instead of in real-time. Spooling, an acronym of Simultaneous Peripheral Operation Online SPOOL , puts data into a temporary working area to be accessed and processed by another program or resource. Buffering is an act of storing data temporarily in the buffer.

It helps in matching the speed of the data stream between the sender and receiver. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. Most popular in GBlog.



0コメント

  • 1000 / 1000