This is the mail archive of the ecos-discuss@sourceware.org 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]

Re: Re: correct handling of condition variables from DSRs


"Fabian Scheler" <fabian.scheler@gmail.com> writes:

> Hello,
>
>> This is pure overhead in the case of DSR-to-thread synchronization.
>
> so, why don't you use a semaphore?

Did I say I don't? Though semaphore is a poor man replacement for an
optimized primitive with exact semantics required for particular purpose
that is currently missing in eCos. Please notice that semaphore's
internal counter is pure overhead as well, though admittedly it's less
than those of mutex having both state variable and a wait queue.

-- 
Sergei.

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


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