You have probably heard of Operating Systems (OSes) that run on mainstream devices:
like desktop PCs and laptops, were the dominant OSes are Windows and OSX
...and mobile phones, were the main OSes are Android and iOS.
These form the "software heart" of your device; every application that runs on your computer, phone or tablet, whether it is Microsoft Word or WhatsApp, makes use of functionality that is offered by the underlying operating system.
These operating systems are good for what they are designed to do - which is to cover the needs of everyday users. They are however not so good at handling real-time requirements. To put things in perspective, think of the computer that constantly monitors and controls a very fast car - for example, a Formula One prototype. The computer gets feedback from sensors, and suddenly realizes that some sort of accident has happened, and there's an obstacle less than 100 meters ahead. It therefore has to hit the breaks, hard - and do so as fast as possible.
No delay can be tolerated here.
None of the major Operating Systems are designed to cover this sort of need. Under various conditions, Windows, OSX, Android and iOS can end up being completely blocked - for large amounts of time; which would mean that the computer in question would not be able to "hit the breaks" in time. In the context of what we are discussing about - that of urgently reacting to something - even 1/10th of a second can be a VERY large delay; it can mean the difference between life and death.
For our missions in space, we may need orders of magnitude faster responses than 1/10th of a second. It is this kind of requirement that classifies what is termed safety-critical, real-time software - and a specific kind of operating system is required to support it.
There are many OSes that endeavor to address this; each one with their own advantages and disadvantages. In many missions supervised by TEC/SWE, we use RTEMS - the Real-Time Executive for Multiprocessor Systems. It is an Open Source operating system, with various features that are very desirable in our target domain (that of embedded systems requiring real-time responses, and utilizing our custom-made, radiation-hardened processors.