PART 2 / LESSON 9 · Overview free · interactive lesson in the full course

Linked lists and fixed buffer pools

Reason about linked nodes, ownership, cycle detection and fixed-capacity allocation.

View lesson accessAll lessons

What the lesson covers

The course lesson is called The pool that ran dry. The radio hands over message buffers. The array that shifts on every pop is back, a corrupted list hangs the watchdog, and the buffer pool runs dry.

Before you start

Question to think about: What invariant would tell you that a buffer belongs to exactly one owner?

Preparation exercise: Draw the state of a small pool before allocation, release and an invalid duplicate release.

This is an original public study prompt, not the paid lesson or its solution. The interactive course contains the walkthroughs, labs, exercises and recaps.

Read the free embedded C articles for additional practice.

Test your understanding

Practice free firmware interview questions and mock interviews · Assess your readiness