Complete Computer Knowledge Portal

Saturday, May 4, 2013

Contiguous Allocation

It is the Memory allocation technique in which contiguous blocks of this are used to save files. Whenever a file is created its size is calculated and based upon its size contiguous blocks are allocated to it for store. This allocation can be Best Fit, Worst Fit or First Fit.

The Main Advantage of using this technique is that it provides fast file access since whole file is allocated contagious blocks.

The Problem associated with this technique is that every time we have to calculate the file size and then to allocate the contagious blocks that can store that file. If we allocate too little space then file can’t be extended and if we allocate too much space and file is not extended than it will result in wastage of space.

Another Main Problem with this technique is external fragmentation. If a file is deleted its allocated space is released and if this released space is not sufficient to store newly created files than it will remain as it and will not be utilized. This results in space wastage.

No comments:

Post a Comment