How would you handle concurrency issues when multiple tasks access shared hardware resources in an RTOS at Benchmark Space Systems?