This is a multipart blog article series, and in this series I am going to explain you the concepts of operating system. This article series is divided into multiple modules and this is the fifth module which consists of 26 articles.
In this article we are going to see about fixed partition which is also known as static partition. We will discuss about various concepts related to fixed partitions and problems present in it.
- Numbers of partitions are fixed.
- In RAM multiple partitions are present in which we put fragments of a process (in contiguous or non-contiguous manner.)
- When we start our system/ machine the operating system get mounted in RAM in order to load. It takes some space in the RAM and rest space is left for the process to get executed.
- In fixed partition when the system load at that time number of partitions are divided, but what will be the size of all partitions it is not decided (it can be same or different.)
- Contiguous allocation so spanning is not allowed, which means a process will not be divided into more than one partition. The complete process will come in one partition.
- Fixed partitioning was used in 1960s, the advantage of this process is that it is easy to implement but it has many disadvantages so it is not used now.
- The size of the process should be less than the size of the partition otherwise the process cannot be placed in the RAM (partition).
- The process
4 MB, than we will place that process in the
4 MBpartition (as shown in fig(i)) and the process will be executed successfully and got terminated.
- The process
P1has a size of
2 MB, than we will place that process in the
4 MBpartition (as shown in fig(i)), than the
2 MBof that
4 MBwill remain empty and in future we cannot use it.
- Because it is contiguous we cannot divide process into multiple fragments. And this thing is known as Internal fragmentation.
Internal fragmentation: Suppose we have a process
7 MB, we place
P2in the RAM of partition
8 MB(as shown in fig(i)), now
1 MBleft empty but we cannot use it (partition) to place another process in it and this is known as internal fragmentation
Limit in process size for example if we want to place a process with size
32 MBin fig(i), we cannot do that because there is no partition which can accommodate
32 MBsize process.
Degree of multiprogramming is limited, it means as you can see in fig(i) we have
4partitions so the maximum number of process we can put in RAM is
4but in case more than
4processes came then we cannot place them in RAM because number of partitions are limited.
- External fragmentation: Suppose the process allocation to RAM is using contiguous method, and all the slots are filled but there is some vacant space in some slots (internal fragmentation) and then another process came whose size is less than the total vacant size in all partition, but we cannot allocate that process to RAM, because in contiguous allocation we do not break process into multiple fragments.
- Note: If there is internal fragmentation present than external fragmentation will also be there.
So this was all about fixed partitioning. Hope you liked it and learned something new from it.
If you have any doubt, question, quires related to this topic or just want to share something with me, than please feel free to contact me.