An operating system (OS) is a collection of software that manages computer hardware resources and provides common services for computer programs.