Linux gives You access to more Physical Memory than is present


linux OS gives u access to Physical memory*2 memory space;

to illustrate this just run following codeĀ  in your linux OS.

memory1.c

now try this code, just little changes i already have made.

memory2.c

i hope u have understood how does linux gives u access to physical memory more than u really have.

in memory2.c instead of allocating size in MB, I have allocated size in terms of GB.

run the code to understand how does it actually works.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s