Computer Science, asked by madhumalanayak78, 6 months ago

which method is used when the storage is deallocated​

Answers

Answered by MoonWings
0

Explanation:

Deallocation of Memory

Deallocation of memory by the Operating System (OS) is a way to free the Random Access Memory (RAM) of finished processes and allocate new ones. We all know that the computer memory comes with a specific size. Have you ever wondered how it manages to do everything it does? It does so, with the help of a robust memory management technique that handles all the allocations and deallocations of processes. A process has to be loaded into the RAM for its execution and remains in the RAM until its completion. Finished processes are deallocated or removed from the memory and new processes are allocated again. This is how the OS works with allocation and deallocation. In high-level, programming memory deallocation is done by garbage collection. The absence of this in low-level programming makes deallocation even more necessary. There are different kinds of memory models that have different deallocation techniques. This has been described in the sections of this lesson.

Single Contiguous Model

The RAM is occupied by one process at a time. There's no sharing of storage space by the processes. One process occupies the RAM at a single instance of time. After the execution is finished, only the the second process would occupy the RAM. This means the memory is deallocated when the process finishes the execution and allocated again for the next process. The biggest disadvantage of this memory management technique is that there can be only one process executed at a time. Unless the deallocation of process happens, another process cannot be allocated. This forces the operating system to have a very sequential access. Another disadvantage of this process is that the process memory size is restricted to the size of the memory.

Similar questions