memory available to a process

From: Jaleel Ahmed <jaleelahmed_at_yahoo.com>
Date: Wed, 26 Jun 2002 05:08:44 -0700 (PDT)

 Hi all

  we have Tru64UNIX 5.1 ES40 (1024 Mb)
  

  char *p;
  long l;
  int i=0;

  for(i =1;i < 200;i++)
   {
        l=i*1024*1024;
        p=(char *)calloc(l,sizeof(char));
        printf("Allotted %d Mb \n",i);
        assert(p!=NULL);
        free(p);
   }

  assertion fails when i = 129 , is this a limit on
memory alllocated to a process . can this limit be
changed.


Thanks in advance
 Abdul




=====
 May Innocence and Joy Prevail

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Received on Wed Jun 26 2002 - 12:08:59 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT