kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* process stack
@ 2011-06-27  3:34 Venkateswarlu P
  2011-06-27  4:00 ` Asutosh Das
  0 siblings, 1 reply; 3+ messages in thread
From: Venkateswarlu P @ 2011-06-27  3:34 UTC (permalink / raw)
  To: kernelnewbies

Each process is having a stack .

In C ,for *local variables* allocation  this stack  is used (for some extra
usage also).

what about *static and global *data allocation ?

where this data  will be allocated ?.


what  about dynamic memory allocation ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110627/a61dd4e3/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* process stack
  2011-06-27  3:34 process stack Venkateswarlu P
@ 2011-06-27  4:00 ` Asutosh Das
  2011-06-27 17:06   ` Ramesh.P
  0 siblings, 1 reply; 3+ messages in thread
From: Asutosh Das @ 2011-06-27  4:00 UTC (permalink / raw)
  To: kernelnewbies

On 27 June 2011 09:04, Venkateswarlu P <p.venkatesh551@gmail.com> wrote:

>
>
> Each process is having a stack .
>
> In C ,for *local variables* allocation  this stack  is used (for some
> extra usage also).
>
> what about *static and global *data allocation ?
>

it goes into BSS (no explicit initialization)


> where this data  will be allocated ?.
>
>
> what  about dynamic memory allocation ?
>
goes into heap

>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you,
Warm Regards,
Asutosh Das
# (91) 9049 000 969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110627/5452eb8c/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* process stack
  2011-06-27  4:00 ` Asutosh Das
@ 2011-06-27 17:06   ` Ramesh.P
  0 siblings, 0 replies; 3+ messages in thread
From: Ramesh.P @ 2011-06-27 17:06 UTC (permalink / raw)
  To: kernelnewbies

On Sun, Jun 26, 2011 at 9:00 PM, Asutosh Das <das.asutosh@gmail.com> wrote:
>
> On 27 June 2011 09:04, Venkateswarlu P <p.venkatesh551@gmail.com> wrote:
>>
>>
>> Each process is having a stack .
>>
>> In C ,for local variables allocation? this stack? is used (for some extra
>> usage also).
>>
>> what about static and global data allocation ?
>
>
> it goes into BSS (no explicit initialization)

I think static/global variables (in BSS) without explicit initializer
are initialized to zero (null for pointer types).

>>
>> where this data? will be allocated ?.
>>
>>
>> what? about dynamic memory allocation ?
>
> goes into heap
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
>
> --
> Thank you,
> Warm Regards,
> Asutosh Das
> # (91) 9049 000 969
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-27 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-27  3:34 process stack Venkateswarlu P
2011-06-27  4:00 ` Asutosh Das
2011-06-27 17:06   ` Ramesh.P

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).