On 8/23/07, mano M <[EMAIL PROTECTED]> wrote:

>   My program allocating 3 dimnsional array using malloc.
>   My linux system has 2 GB ram and 50GB hard disk space.How much maximun 
> space can I allocate using malloc?Is it maximum 2GB or more?will it swap 
> memory,if allocate more the 2 GB?

Yes, you can use as much memory as your system has available, and will
start using swap as necessary. Do you think your program is really
going to need 2GB of memory for a 3D array? What are you storing in
the array?

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to