@ above I think it is because of the heap size . The Heap corresponding to dynamic memory allocation grows and merges with the stack section of the process.
Correct me if I am wrong. And if was only because of calloc() , then will malloc work? Can we allocate 1gb dynamically using malloc()?? On Sat, Jun 19, 2010 at 10:14 AM, harit agarwal <[email protected]>wrote: > @amit > > 1. calloc gives contiguos allocated space and it is not necessary that it > can find 1gb in a row that's why it failed after allocating some memory... > it is not necessary that it will always allocate 800mb of space as in this > case... > > > 2. whenever a process is executed in critical section....it is means that > it raises it execution level so that it can't be interrupted while the other > processors are still on the same execution level they can be interrupted.... > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
