Difference between hard and soft real-time OS are as follows:Hard Real-Time OSSoft Real-Time OS1. A hard real-time system guarantees that critical tasks complete on time.1. A soft real-time system where a critical real-time task gets priority over other tasks and retains that priority until it completes.2. This goal requires that all delays in the system be bounded from the retrieval of the stored data to the time that it takes the operating system to finish any request made of it.2. As in hard real-time systems kernel delays need to be bounded.3. Its tasks are periodic that receive, process and send messages.3. Usually, they are periodic tasks scheduled in background, during the idle time of the processor.