From OS there are system calls to allocate memory for the processor, etc.
On the hardware level memory is a set of signals 1-0 and the flow continuously passes through the processor, and change is sent back to memory.
Breana_Leffl answered on June 7th 19 at 14:56
or where about it to esteem ?
Read books on operating systems, architecture of computers, of compilation. Do not to ask what there is a logical chain of people succeed education at the University.
To start understanding there is a need to study how the processor, how it works with memory devices in the mother Board, peripheral devices, ACS computer, in General. Assembly language and C, though the corner of his eye, too, is to study together.
Then read a couple of books, how OS works, both in theory and concrete examples of Linux\Windows. All this, at a normal pace, it may take a couple of months, no more.
Further, it will be clear which way Google.