This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: multi-threading in eCos and Linux
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: 00917764d <00917764d at polyu dot edu dot hk>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 04 Nov 2002 06:47:45 -0700
- Subject: Re: [ECOS] multi-threading in eCos and Linux
- References: <3DDD1D3E@webmail.polyu.edu.hk>
On Mon, 2002-11-04 at 00:46, 00917764d wrote:
> Hi all,
>
> I am going to write a cross-platform multithreading program in eCos and Linux,
> as I know, both eCos and Linux are support POSIX thread (p_thread) and eCos
> also have some API (cyg_thread) to handle multi-threading. I want to write an
> crossplatform compatible program which suit to eCos and Linux. So I want to
> use POSIX thread to develop this program. But I afraid the performance of
> POSIX thread in eCos is not good as cyg_thread in eCos. Could you suggest me
> that which threading API in eCos is prefered( p_thread or cyg_thread)? Thanks
> a lot.
Use the POSIX API. It's very portable and imposes very little
overhead over eCos native threads.
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss