An operating system manages hardware and gives programs a way to use it. A real-time operating system also helps tasks meet timing deadlines.