public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Thread Memory
@ 2000-09-19  4:19 Sandeep Rikhi
  2000-11-06 21:29 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Sandeep Rikhi @ 2000-09-19  4:19 UTC (permalink / raw)
  To: eCos Discussion Gp.

Respected Sir,
 This may be very basic point in eCos.
The doubt i have is that 
"How Do I free the memory which has been reserved for a particular
thread?"
I need to delete any data structures related to a particular thread and
need the memory ( allocated for its stack etc.)
to be marked as free. How do we do it?
Please put some light!
Regards !
*********************************************************
        Sandeep Rikhi
        GET-GCPE Group.
        Switching Division B1,
        C-DOT, B'lore
        Ph: (080) 2263399 ext:205/217,2250009,2282119   
*********************************************************

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

* Re: [ECOS] Thread Memory
  2000-09-19  4:19 [ECOS] Thread Memory Sandeep Rikhi
@ 2000-11-06 21:29 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-11-06 21:29 UTC (permalink / raw)
  To: Sandeep Rikhi; +Cc: eCos Discussion Gp.

Sandeep Rikhi wrote:
> 
> Respected Sir,
>  This may be very basic point in eCos.
> The doubt i have is that
> "How Do I free the memory which has been reserved for a particular
> thread?"
> I need to delete any data structures related to a particular thread and
> need the memory ( allocated for its stack etc.)
> to be marked as free. How do we do it?

Sorry for the slow reply.

The answer is that you have to do it yourself when you quit the thread.
Tracking all these resources would add a significant overhead to the
operation of eCos.

The memory allocated for a thread stack, for example, is under your
control, not the systems. If you used malloc to get it, then you must free
it. If it's a global variable, then obviously there's nothing you can do to
free it.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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

end of thread, other threads:[~2000-11-06 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-19  4:19 [ECOS] Thread Memory Sandeep Rikhi
2000-11-06 21:29 ` Jonathan Larmour

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 read-only IMAP folder(s) and NNTP newsgroup(s).