Operating system controls selection and execution of program modules