This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
how ecos process sync in tcp/ip stack?
- From: =?gb2312?B?1cUgwcE=?= <johnsonest at hotmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 02 Jan 2003 16:58:43 +0800
- Subject: [ECOS] how ecos process sync in tcp/ip stack?
- Bcc:
Dear Gthomas and others,
1 as we know,ecos use mutex to process all kinds of sync problems in
tcp/ip.so all event relate network must be process by a thread(DSR can't do
this),but I do not know how to define this thread's priority:
if this priority is too high,other app maybe interfered
if too low,network event maybe delayed to be processed
2ecos mutex do not support nest access to a same mutex(lock many
times)
so you use 4 level to differ them,it seem that DSR's only advantage is
to tell event occured but process nothing further in most cases.so like
other RTOS's ISR can do this.
DSR seem as a "remedial" way to ecos schedule machanism,not a powerful
utility like linux's softinterrupt, because DSR in ecos can't be blocked!
of course,this machanism simplify os kernel design.
right?
BRS/johnsonest
_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss