can a program start executing even before it is fully loaded into memory

Laxminarayan

Beta member
Messages
1
Sir,
can a program start executing even before it is fully loaded into memory. For example, if program A consists of 10 pages, then does it start execution even if only the first 2 pages are loaded in memory ?

I remember some one telling me that while execution of a program a part of the program can be in memory and the program is executed by paging etc, but before execution it requires the whole program to be loaded in memory. If enough memory not available to load the whole program then it fails. Is this true and why do you have to load the whole program before execution ?

Thank you
 
Back
Top Bottom