Question d’entretien chez J.P. Morgan

when a program executes , what activities the OS will do and how a program executes?