Whenever you're ready, walk me through how you'd approach this.
Explain how you handle interrupts and shared resources in an embedded system.