An operating system (OS) is system software that manages computer hardware, software resources, and provides services for programs.