Days 17 and 18 both defeated me. Star 1 was easy, Star 2 was not. Both were pretty quick to solve for the first star, though, so let’s look at that.
Day 17 – Spinlock
For Advent of Code Day 17, we had to implement a spinlock. Spinlocks are a way to implement busy waiting.