answersLogoWhite

0

What is compaction in operating system?

Updated: 11/7/2022
User Avatar

Sonpari7

Lvl 1
12y ago

Best Answer

Compaction attacks the problem of fragmentation by moving all the allocated blocks to one end of memory, thus combining all the holes. Aside from the obvious cost of all that copying, there is an important limitation to compaction: Any pointers to a block need to be updated when the block is moved. Unless it is possible to find all such pointers, compaction is not possible. Pointers can stored in the allocated blocks themselves as well as other places in the client of the memory manager. In some situations, pointers can point not only to the start of blocks but also into their bodies. For example, if a block contains executable code, a branch instruction might be a pointer to another location in the same block. Compaction is performed in three phases. First, the new location of each block is calculated to determine the distance the block will be moved. Then each pointer is updated by adding to it the amount that the block it is pointing (in)to will be moved. Finally, the data is actually moved. There are various clever tricks possible to combine these operations.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is compaction in operating system?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Disadvantages of compaction in Operating system?

Compaction is possible only if relocation is dynamic, and is done at execution timeCompaction is considered expensive


When you perform compaction in memory management system?

When the memory resources are scarce. We use compaction.


Is Windows 95 an operating system or an operating environment?

XP is a complete operating system, not simply an operating environment.


Explain all types of operating system with diagram?

There are basically four types of operating systems. They include Batch Operating System, Multiprogramming Operating System, Network Operating System and Distributed Operating System.


What are 5 Classification of each operating system?

1. BATCH PROCESSING operating system 2. MULTIPROGRAMMING operating system 3. TIME SHARING operating system 4. REAL TIME operating system 5. DISTRIBUTED operating system


What is operating system and what is the uses of operating system?

An operating system manages the working operation of a computer


Is a multiuser operating system also described as a network operating system?

Yes, a multiuser operating system is also described as a network operating system.


Is the BIOS the operating System for Windows Vista?

Hell no. the bios sits under the operating system (vista is an operating system) the bios is independent of operating systems, and is there to....run the operating system.


What is the relationship between a guest operating system and a host operating system in a system like VMware?

It is both operating system....


What is the relationship between a guest operating system and host operating system in a system like VMWare?

It is both operating system....


Software that controls the computer's basic functions is called an operating system?

Operating System


What is Lindow operating system?

commonly lindo is not operating system ,window is operating system developed by microsoft...