How do you handle resource contention in a multi-threaded, real-time operating system for autonomous applications?