Skip to main content

Practice · 2 of 2

Pool Release and Reuse

CHALLENGE
Difficulty: advanced+25 XP

Extend the pool: release(p) returns a previously-acquired block to the free list (calls AllocTracker::noteFree()), and available() reports how many blocks can still be handed out.

Back to lesson: Practice: Practice: Pool Mechanics