What is the main difficulty that a programmer must overcome in writing an operating system for a real-time environment?
The main difficulty is keeping the operating system within the fixed time constraints of a real-time system. If the system does not finish a task in a certain time frame, it may cause a breakdown of the whole system it is running. Thus when writing an operating system for a real-time system, the writer must be sure that his scheduling schemes don't permit response time to exceed the time constraint.