[ECOS] newbie query! spinlocks mlqueue
jeane
jeane.genet@gmail.com
Tue Dec 20 10:24:00 GMT 2005
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
More information about the Ecos-discuss
mailing list