From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22439 invoked by alias); 4 Nov 2002 15:04:05 -0000 Mailing-List: contact ecos-maintainers-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-maintainers-owner@sources.redhat.com Received: (qmail 22321 invoked from network); 4 Nov 2002 15:04:03 -0000 Message-ID: <3DC68C52.1030507@eCosCentric.com> Date: Mon, 04 Nov 2002 07:04:00 -0000 From: Jonathan Larmour User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 X-Accept-Language: en, en-us MIME-Version: 1.0 To: mctim CC: "ecos-maintainers@sources.redhat.com" Subject: Re: multi-threading in eCos and Linux References: <3DDCC4D1@webmail.polyu.edu.hk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00001.txt.bz2 mctim wrote: > Hi, > > 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. This isn't really appropriate to the maintainers list but I'll reply anyway. While it's true that the native cyg_threads stuff is the most efficient, you'll find that eCos is a sufficiently lightweight operating system anyway that the very small overhead of using POSIX threads will not have any real impact. If your requirements are that it is cross platform, then POSIX threads are definitely the way to go. Jifl -- eCosCentric http://www.eCosCentric.com/ --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine