How operating sytem starts a program after clicking?

When any icon is clicked(eg: chrome, notepad), how does OS know it is clicked and how it loads the program details into main memory for execution?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum