Home » OS Contiguous Allocation

OS Contiguous Allocation

by Online Tutorials Library

Contiguous Allocation

If the blocks are allocated to the file in such a way that all the logical blocks of the file get the contiguous physical block in the hard disk then such allocation scheme is known as contiguous allocation.

In the image shown below, there are three files in the directory. The starting block and the length of each file are mentioned in the table. We can check in the table that the contiguous blocks are assigned to each file as per its need.

os contiguous allocation

Advantages

  1. It is simple to implement.
  2. We will get Excellent read performance.
  3. Supports Random Access into files.

Disadvantages

  1. The disk will become fragmented.
  2. It may be difficult to have a file grow.

You may also like