• edited by
21,283 views
56 56 votes

In a file allocation system, which of the following allocation scheme(s) can be used if no external fragmentation is allowed?

  1. Contiguous
  2. Linked
  3. Indexed
  1. $1$ and $3$ only
  2. $2$ only
  3. $3$ only
  4. $2$ and $3$ only

6 Answers

Best answer
55 55 votes

Answer: D) Both Linked and Indexed allocation free from external fragmentation

Refer: Galvin

Reference: https://webservices.ignou.ac.in/virtualcampus/adit/course/cst101/block4/unit4/cst101-bl4-u4-06.htm

• edited by
19 19 votes
Option D: Both Indexed and Linked file allocation schemes do not suffer from external fragmentation,  Whereas Contiguous allocation suffer from external fragmentation & Internal fragmentation may exist in the last disk block of a file.
5 5 votes

Contiguous: It's possible to have external fragmentation, as to store a file we need continous data blocks which might not be available.

Linked: No ext. fragmentation,as we can link data blocks by using a pointer to next data block in each data block.

Indexed: No ext. fragmentation,as in index table we store a files all data blocks addresses,without requiring to access data block to get to random data block.

Option D

3 3 votes

The correct answer is: D. 2 and 3 only

Explanation:

In file allocation systems, external fragmentation occurs when free storage space is broken into small pieces and is scattered throughout the disk, making it difficult to allocate contiguous space to new files.


1. Contiguous Allocation

  • Description: Allocates a single continuous block of space for a file.
  • External Fragmentation: Yes. As files are created and deleted, gaps of free space arise that may be too small for new files.
  • Conclusion: Not suitable when no external fragmentation is allowed.

2. Linked Allocation

  • Description: Each file is a linked list of disk blocks, which can be scattered anywhere on the disk.
  • External Fragmentation: No. Any free block can be used; there's no need for contiguous space.
  • Conclusion: Suitable.

3. Indexed Allocation

  • Description: Maintains an index block with pointers to all blocks of the file.
  • External Fragmentation: No. Like linked allocation, blocks can be scattered.
  • Conclusion: Suitable.
1 1 vote

                                                                       About Every Allocation Scheme

Contiguous Allocation :  Internal Fragmentation ✅     External Fragmentation ✅

Linked Allocation :  Internal Fragmentation ✅     External Fragmentation ❌

Indexed Allocation :  Internal Fragmentation  ✅    External Fragmentation ❌

Answer:
Position:
Show:

Related questions

42 42 votes
7 answers 7 answers
23.9k
23.9k views
Arjun asked Feb 14, 2017
23,853 views
A system shares $9$ tape drives. The current allocation and maximum requirement of tape drives for that processes are shown below:$$\begin{array}{|c|c|} \hline \textbf{P...
53 53 votes
7 answers 7 answers
20.7k
20.7k views
Madhav asked Feb 14, 2017
20,695 views
In a $B^+$ Tree , if the search-key value is $8$ bytes long , the block size is $512$ bytes and the pointer size is $2\;\text{B}$ , then the maximum order of the $B^+$ Tr...
59 59 votes
5 answers 5 answers
18.0k
18.0k views
khushtak asked Feb 14, 2017
18,043 views
If $w, x, y, z$ are Boolean variables, then which one of the following is INCORRECT?$wx+w(x+y)+x(x +y) = x+wy$$\overline{w \bar{x}(y+\bar{z})} + \bar{w}x = \bar{w} + x + ...
35 35 votes
6 answers 6 answers
14.4k
14.4k views
Arjun asked Feb 14, 2017
14,434 views
An air pressure contour line joins locations in a region having the same atmospheric pressure. The following is an air pressure contour plot of a geographical region. Con...