This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how ecos process sync in tcp/ip stack?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]