Whenever you're ready, walk me through how you'd approach this.
Discuss the differences between a mutex and a binary semaphore in the context of real-time operating systems (RTOS). What are the key characteristics of each, and in what scenarios would you prefer one over the other?