This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
newbie query! spinlocks mlqueue
- From: jeane <jeane dot genet at gmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 20 Dec 2005 18:24:31 +0800
- Subject: [ECOS] 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