The Daily Insight.

Connected.Informed.Engaged.

updates

What is compaction in OS example?

By Sarah Oconnell

Compaction is a process in which the free space is collected in a large memory chunk to make some space available for processes. In memory management, swapping creates multiple fragments in the memory because of the processes moving in and out. Compaction refers to combining all the empty spaces together and processes.

What is compaction in OS example?

A possible remedy to the problem of external fragmentation is compaction. The idea is to move all processes towards one end of memory and all the free blocks of memory towards the other end. For example, consider the case in which the blocks are distributed between 2 processes as shown in the below image.

What is compaction in OS internal fragmentation?

Internal Fragmentation occurs when a process needs more space than the size of allotted memory block or use less space. External Fragmentation occurs when a process is removed from the main memory. Compaction is the solution for external fragmentation.

What is compaction?

Compaction is the process in which the free spaces are collected in the large memory chunk to make some space available for processes. Compaction – External Fragmentation.

What is thrashing in operating system?

Thrashing is a state in which the CPU performs ‘productive’ work less, and ‘swapping’ more. The CPU is busy in swapping pages so much that it can not respond to users’ programs and interrupts as much as required. Thrashing occurs when there are too many pages in memory, and each page refers to another page.

Which binding is required for compaction?

Hence we conclude that low-affinity binding of IHF to DNA is the dominant mechanism responsible for compaction.