hi all,i guess this was not what was asked !!!to make it clear .. say we have a program running in the RAM and it needs to load a library to access some function from the secondary storage and map it into its address space. how does the process get to know whether its present in the RAM already or the library is to be copied form the storage.
When the process touches the memory mapped in for the shared library (the shared library gets mapped in via an mmap()), the kernel will load the appropriate pages if they haven't been loaded already. Do remember that *this happens transparent to the process*.
--
c u
./hareesh