[ECOS] ecos questions:kill safty

zhlg_shuhan zhlg_shuhan@sina.com
Thu Jun 27 22:17:00 GMT 2002


Sir,thank you for your fast writing back!
    with Iztok's and your  help,I have grasped mainly eCos sheduler and this let me believe ecos  sheduler advantage over other RTOS.In theory,eCos sheduler maybe  difective,but in fact,it will more efficient by carefully app. design ! I  will use it!
    thank you for your work! and thank your team! 
by the way,  algorithm of finding a higher priority thread in ready queue may be modified so time-cost of each finding  at any condition is same.

                                                      zhlg
----- Original Message -----
From:Nick Garnett <nickg@calivar.demon.co.uk>
To:zhlg_shuhan <zhlg_shuhan@sina.com>
Subject:Re: [ECOS] ecos questions:kill safty
Date:Thu, 27 Jun 2002 17:21:24 +0800
 >Please always CC messages to the ecos-discuss list. This way others
 >may benefit from the discussion, and the messages will also be
 >archived for future readers.
 >
 >zhlg_shuhan <zhlg_shuhan@sina.com> writes:
 >
 >> Sir,thank your answer!
 >>    can I call  some functions just like sem::post() in my ISR/DSR?
 >> if I can,race condition may be occur! because these function(post() etc.)will access scheduler::queue,which is accessing by a thread interrupted by current ISR/DSR.
 >> right?
 >
 >You cannot call any functions that interact with the kernel from an
 >ISR. Instead the ISR may ask for the DSR to be run, which can then
 >make the call. DSRs are only run when the scheduler is in a consistent
 >state and it is safe to make any further calls.
 >
 >Several people have already answered this question for you on the
 >list. It is also covered extensively in the documentations. I suggest
 >you read it.
 >
 >-- 
 >Nick Garnett - eCos Kernel Architect
 >
 >
 >

______________________________________

===================================================================
ÐÂÀËÃâ·Ñµç×ÓÓÊÏä (http://mail.sina.com.cn)
ÐÂÀË·ÖÀàÐÅÏ¢£º¶þÊÖÊг¡×ßÒ»×ߣ¬¸Ã³öÊÖʱ¾Í³öÊÖ£¡ (http://classad.sina.com.cn/2shou/)

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list