An operating system is a software layer that manages the hardware and software resources of a computer system.