What are the challenges you face when working with real-time operating systems? Implement simulate_rtos(tasks, duration) to model a single-core, fixed-priority preemptive scheduler in one-unit time slices. Each task is a dictionary with name, period, execution, deadline, and priority; return a dictionary containing missed_deadlines and the per-slot timeline. Lower numeric priorities run first, releases occur at multiples of period, and an unfinished job misses its deadline at the deadline boundary.
def simulate_rtos(tasks, duration):