Computer Science - Operating Systems Concepts - Discussion

Discussion Forum : Operating Systems Concepts - Section 1 (Q.No. 37)
37.
Fragmentation of the file system
occurs only if the file system is used improperly
can always be prevented
can be temporarily removed by compaction
is a characteristic of all file systems
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
7 comments Page 1 of 1.

Shekhar said:   1 decade ago
Fragmentation is a phenomenon in which storage space is used inefficiently, reducing capacity and often performance. Fragmentation leads to storage space being "wasted", and the term also refers to the wasted space itself.

Sachchidanand said:   1 decade ago
Compaction means defragmentation.

Shweta said:   1 decade ago
If it means compaction so how it is "temporarily removed"?

Kashi said:   9 years ago
So what is compaction?

And how is fragmentation and compaction co-related?

Amit said:   9 years ago
Defragmentation means storing the complete file in a smallest number of contiguous regions. That is, it tries to stores a file as one complete unit if that size of contiguous memory is available. Suppose process A has fragments A1, A2, A3, process B has fragments B1, B2.

Now, suppose memory layout is |A1|B1|A2|A3|B2|, after defragmentation we have |A1|A2|A3|B1|B2|.

Defragmentation can also contribute to compaction.

Amit said:   9 years ago
Compaction means moving the "in-use" memory areas to eliminate holes caused by terminated processes.Suppose we have five processes A, B, C, D, E, allocated as |A|B|C|D|E| in memory. After sometimes, the process B and D are terminated.

Now we have memory layout as |A| |C| |E|. After applying compaction we will have |A|C|E| | | i.e instead of two one-block memory unit we have one two-block memory unit.

Kshitij said:   4 years ago
Thnak you @Amit.

Post your comments here:

Your comments will be displayed after verification.