It means the program crashed while it was trying to allocate more memory .
Now can u guess why that happened?

On Fri, Jun 18, 2010 at 1:29 PM, jaladhi dave <[email protected]>wrote:

> can you explain what you meant when you said "the program fails after
> allocationg about 800mg(appx. i dont remember).
> This is the excerpt from calloc man page, Calloc will either fail or
> succeed but there is no way you can tell so much was alloted and then it
> failed.
> *Return Value***For calloc() and malloc(), the value returned is a pointer
> to the allocated memory, which is suitably aligned for any kind of variable,
> or NULL if the request fails.
>
> On Fri, Jun 18, 2010 at 1:09 AM, amit <[email protected]> wrote:
>
>> 1. a mad user tries to allocate 1 gb memory using calloc.
>> but the program fails after allocationg about 800mg(appx. i dont
>> remember). Tell me what could have gone wrong?
>>
>> 2.
>> We know disabling interrupts works only if it is single processor(i.e
>> local disabling of interrupts).
>>
>> Consider this case where we have a SMP(symmetric multi proc) the
>> processor. Processor-1 wants to perform some critical operation so it
>> disables all the interrupts.
>>
>> What will happen when processor-2 throws an interrupt.
>>
>> --
>> 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]<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.

Reply via email to