📜  固定分区和可变分区之间的区别

📅  最后修改于: 2021-08-27 07:36:04             🧑  作者: Mango

1.固定分区:
具有固定分区的多重编程是一种连续的内存管理技术,其中将主内存划分为固定大小的分区,这些分区的大小可以相等或不相等。每当我们必须分配进程内存时,就会发现一个足够大的空闲分区来容纳该进程。然后将内存分配给进程。如果没有可用空间,则进程在队列中等待分配内存。它是最容易实现的最古老的内存管理技术之一。

2.变量分区:
具有可变分区的多重编程是一种连续的内存管理技术,其中主内存不划分为多个分区,并且为进程分配了一块足够大的可用内存。剩余的空间被认为是可以由其他进程进一步使用的自由空间。它还提供了压缩的概念。在压缩中,合并了空闲空间和未分配给进程的空间,并形成了一个大的存储空间。

固定分区和可变分区之间的区别:

S.NO. Fixed partitioning Variable partitioning
1. In multi-programming with fixed partitioning the main memory is divided into fixed sized partitions. In multi-programming with variable partitioning the main memory is not divided into fixed sized partitions.
2. Only one process can be placed in a partition. In variable partitioning, the process is allocated a chunk of free memory.
3. It does not utilize the main memory effectively. It utilizes the main memory effictively.
4. There is presence of internal fragmentation and external fragmentation. There is external fragmentation.
5. Degree of multi-programming is less. Degree of multi-programming is higher.
6. It is more easier to implement. It is less easier to implement.
7. There is limitation on size of process. There is no limitation on size of process.