public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Bart Veer <bartv@redhat.com>
To: wangw@term.star.com.cn
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Does eCos create threads in runtime dynamically?
Date: Wed, 13 Sep 2000 06:22:00 -0000	[thread overview]
Message-ID: <200009131322.OAA00441@sheesh.cygnus.co.uk> (raw)
In-Reply-To: <002a01c01d1e$f86a14e0$592da8c0@ww.term.star.com.cn>

>>>>> " " == =?gb2312?B?zfXOsA==?=  <gb2312> writes:

     > This is a multi-part message in MIME format.
     > ------=_NextPart_000_0027_01C01D62.05147080
     > Content-Type: text/plain;
     > 	charset="gb2312"
     > Content-Transfer-Encoding: quoted-printable

     > It's  said that eCos is targeted at static system in eCos whitepaper.
     > But I notice eCos improve it's dynamic memory manager in kernel.Is it
     > means a thread can be created dynamically by another thread at runtime ?
     > someone explain it for me !
     > thanks

     > ------=_NextPart_000_0027_01C01D62.05147080
     > Content-Type: text/html;
     > 	charset="gb2312"
     > Content-Transfer-Encoding: quoted-printable

     <snip>

First, please configure your email settings to use plain text only
when sending to mailing lists such as ecos-discuss. Not everybody uses
MIME-aware mail readers.

The preferred approach in eCos is to use static allocation whenever
possible. This avoids problems such as memory leaks, running out of
memory at inconvenient times, non-determinism caused by memory
fragmentation, and so on. If you can avoid dynamic allocation
completely then you can eliminate the need for malloc() etc., saving
on both code and data size.

However, there are some applications for which a completely static
approach is not sufficient. Hence eCos does provide facilities such as
malloc(), and it does allow threads etc. to be created and destroyed
at run-time.

Bart Veer // eCos net maintainer

      reply	other threads:[~2000-09-13  6:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-12 18:11 王伟
2000-09-13  6:22 ` Bart Veer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200009131322.OAA00441@sheesh.cygnus.co.uk \
    --to=bartv@redhat.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=wangw@term.star.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).