The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
Can someone make me clear whether segmentation method of memory allocation is free from internal and external fragmentation.? Also plz give valid explanation in support of your answer.
asked in Operating System by Veteran (100k points) | 212 views
Internal -no. Because we just allocate what we need.

External- yes. Because due to variable size allocation space can be wasted in between.
But sir I think internal fragmentation is possible if segmented paging is used then fragment possible in the last page of the segment which will be internal fragmentation..Correct me sir if I m wrong..

I think it is a good reference

if segmentation is variable partitioning then it is free from internal fragmentation , but not from external fragmentation

Thanks a lot @srestha..So we can say out of the available methods , segmentation is best method of memory allocation isn't it??

In case segment size becomes large we do paging of the segment..

segmentation is better than static partitioning. I think it is not best, as it causes external fragmentation. Some times paging gives better memory utilization than segmentation

For ur 2nd question ans is

1 Answer

+2 votes
Best answer
i think segmentation doesnt create any internal fragmentation as each module of the process is entirely occupied in the segment.
but it creates external frgmentation when we free one few segments...which creates holes.
answered by Veteran (13.1k points)
selected by

Related questions

+1 vote
0 answers
0 votes
0 answers
+3 votes
3 answers

34,291 questions
41,038 answers
39,940 users