In which of the following situations would you use a mutex to avoid synchronization problems?
A single-threaded application needs to manage two separate UART peripherals
Two independent threads running on a single processor both need to access a single UART
In a dual-core system, a UART is accessed by a single thread running on one of the processors
In a dual-core system, processor A needs to access UART A and processor B needs to access UART B
Submit