P. 1
Getting Started With uClinux A

Getting Started With uClinux A

|Views: 749|Likes:
Published by Vinit Dalvi

More info:

Published by: Vinit Dalvi on Aug 12, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Swapping is a technique of moving application code from storage, such as a hard disk, into

memory or vice versa, i.e. from memory to storage. When an application starts the complete

application image does not have to be loaded into memory, only those parts that are initially

accessed. Other parts of the application will be loaded as they are needed which is also

known as demand paging.

Looking at Figure 3 there are pages in the virtual memory which are not mapped to any

physical memory. When the application tries to access such a page the MMU will detect this

and the page being referenced will be loaded from storage into memory. If no physical

memory is available the least frequently used page in the physical memory will be swapped

out to storage before the new page is swapped into memory.

An MMU is required for swapping and demand paging, but even if the processor has support

for an MMU it is not certain that swapping and demand paging is used in embedded systems

because of limited and/or slow storage space.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->