- Enter the total memory size (between 100 and 2048 bytes) and click the SUBMIT button.
- Observe a single large block of the specified size. This block is often referred to as the free memory pool.
- Enter the size of the process and click the SUBMIT button. The following steps occur when a process is submitted:
- The size of the process is determined.
- Next, search for a suitable partition:
- If a block of memory large enough to accommodate the process is found, allocate a partition of the required size to the process.
- If the block is larger than the process's requirements, split the block into two parts: one part of the exact size needed by the process and the other part remaining as free memory.
- Finally, record the allocation and adjust the free memory pool accordingly.
- Repeat step 2 until no free memory is left.
- If a process terminates or completes, its allocated partition is freed.
- Try allocating new processes in the memory by repeating step 2.