An operatin seestem ( OS ) is a collection o saftware that manages computer hardware resoorces an provides common services for computer programs .