public inbox for ecos-maintainers@sourceware.org
 help / color / mirror / Atom feed
* multi-threading in eCos and Linux
@ 2002-11-03 23:10 mctim
  2002-11-04  7:04 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: mctim @ 2002-11-03 23:10 UTC (permalink / raw)
  To: ecos-maintainers

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.

Regards,
Tim 

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

* Re: multi-threading in eCos and Linux
  2002-11-03 23:10 multi-threading in eCos and Linux mctim
@ 2002-11-04  7:04 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2002-11-04  7:04 UTC (permalink / raw)
  To: mctim; +Cc: ecos-maintainers

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/       <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine

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

end of thread, other threads:[~2002-11-04 15:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-03 23:10 multi-threading in eCos and Linux mctim
2002-11-04  7:04 ` 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).