storage of program | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

storage of program

where does our code stored in system and where it will get executed once we type execute?

18th Sep 2017, 9:59 AM
anwesh jami
anwesh jami - avatar
1 Respuesta
0
Depends on the OS and the hardware. Generally code will be be stored in virtual memory pages, which can be in ram or on the hdd/ssd. If it's on the hdd/ssd and it needs to be executed, a page fault will occur and the OS will go and put the code into ram so it can be executed by the CPU
18th Sep 2017, 12:33 PM
aklex
aklex - avatar