In real-time systems, tasks must finish work before deadlines. Hard real-time systems fail immediately if deadlines are missed. Soft real-time systems allow continuing with reduced quality. The code example shows checking elapsed time against a deadline. Execution steps trace task start, work, deadline check, and system response. Variables track start time, current time, deadline, and if deadline was met. Key moments clarify why hard RT fails on misses and how deadlines are checked. Quizzes test understanding of steps and variable values. Remember: hard RT is strict, soft RT is forgiving.