in Operating System edited by
12,970 views
41 votes
41 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
in Operating System edited by
13.0k views

1 comment

External Fragmentaion is only possilbe in Contiguous file Allocation method..
1
1

2 Answers

44 votes
44 votes
Best answer

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

4 Comments

@srestha@Bikram plz let me know if i am wrong

Internal Fragmentation

1) It occurs when memory is divided into fixed-sized partitions.

2) it occurs contiguous & non contiguous allocation

3)non contiguous allocation avoid external fragmentation.

External Fragmentation

1)It occurs when memory is divided into variable-sized partitions based on size of process.

2) it does not occur when memory allocated in non contiguous manner.

0
0
Plz search Wikipedia for it.
1
1

Internal fragmentation happens when the unusable memory is within an allocated memory area.

external fragmentaion happens when the unusable memory is not within an allocated memory area but its still unusable. 

Source

0
0
17 votes
17 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.

4 Comments

Internal Fragmentation will be there in all the allocations.
9
9

in dynamic memory allocation, memory pools drastically cut internal fragmentation by spreading the space overhead over a larger number of objects.

0
0

@ @

IF we have a file of size 1020 B and block size is 512 B

Then every allocation technique will give Internal fragmentation as last block wil  be partially filled 

So all techniques suffer from Internal fragmentation is right ???

0
0
Yes, all will suffer from internal fragmentation given File size is not a multiple of Block size.
2
2
Answer:

Related questions