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]

newbie query! spinlocks mlqueue


bonjour!
I was browsing through the code looking for implemantation pour the
spinlock in uni-processor modes. All it does is is add one to the
flag! What happens if there are two threads (with mlqueue based
scheduling preemption enabled) and thread A acquire spinlocks and gets
scheduled out and thread B tries to acquire the spinlock ? It look it
will acquire the spinlock :-S I miss something? how does spinlock
(cyg_spinlock_spin)disables scheduling?
Excuse my poor englais, any help will be grateful.
Thank you,
Jeane.

--
"L'existence précède et commande l'essence."  --Jean-Paul Sartre

--
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]