0
0
Operating Systemsknowledge~20 mins

Free space management in Operating Systems - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Free Space Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Free Space Bitmaps

In free space management, a bitmap is used to track free and used blocks on a disk. If a disk has 1024 blocks and the bitmap shows 1000001110 (from left to right) for the first 10 blocks, which blocks are free?

ABlocks 2, 3, 4, 9 are free
BBlocks 1, 6, 7, 8 are free
CBlocks 0, 5, 6, 7 are free
DBlocks 0, 1, 2, 3 are free
Attempts:
2 left
💡 Hint

Remember, in a bitmap, 0 usually means free and 1 means used.

📋 Factual
intermediate
1:30remaining
Free Space Linked List Characteristics

Which of the following is a disadvantage of using a linked list to manage free disk space?

AIt provides constant time access to any free block
BIt avoids external fragmentation
CIt requires extra space to store pointers
DIt is simple to implement and update
Attempts:
2 left
💡 Hint

Think about what extra information must be stored in a linked list node.

🔍 Analysis
advanced
2:30remaining
Comparing Free Space Management Methods

Consider three free space management methods: bit vector, linked list, and grouping. Which method is most efficient in terms of speed when allocating a large number of contiguous blocks?

AGrouping, because it stores addresses of free blocks in groups reducing overhead
BBit vector, because it allows quick scanning for contiguous free blocks
CLinked list, because it stores exact addresses of free blocks
DAll methods have equal speed for large contiguous allocations
Attempts:
2 left
💡 Hint

Think about how each method tracks free blocks and how easy it is to find contiguous free space.

Reasoning
advanced
2:30remaining
Effect of External Fragmentation on Free Space Management

Which free space management method is most affected by external fragmentation, and why?

ALinked list, because it stores free blocks individually leading to scattered free spaces
BBit vector, because it cannot represent free blocks accurately
CGrouping, because it merges all free blocks into one large block
DNone of the methods are affected by external fragmentation
Attempts:
2 left
💡 Hint

Consider how each method handles scattered free blocks.

Comparison
expert
3:00remaining
Choosing Free Space Management for Large Disks

A system administrator must choose a free space management method for a very large disk with millions of blocks. Which method is best suited to minimize memory usage while maintaining reasonable allocation speed?

ALinked list, because it uses minimal memory by storing only free block addresses
BBit vector, because it uses fixed memory proportional to disk size
CContiguous allocation, because it avoids free space management altogether
DGrouping, because it reduces pointer overhead by storing free blocks in groups
Attempts:
2 left
💡 Hint

Think about trade-offs between memory usage and speed for very large disks.