Mutual Exclusion in Kernel
A message that is not in the archive (sent off-list or not yet received): [email protected]
No!
You have to write your own busy-waiting-algorithm while the operating system provides you a semaphore.
A busy-waiting-algorithm can be compared with a two-state-semaphore (lock or unlock) but the concept of the semaphore is must more powerful. In theory an infinite number of states is possible. Thus you can control the access to a resource in different levels.
Am Mittwoch, 6. Oktober 2004 10:55 schrieben Sie:
Quoted 40 lines
but this is like semaphore?
thanks again
ankit
Quoted 20 lines · --- Robin Doer
Good morning!
Quoted 3 lines · Ankit Jain
hi
what is spin lock?
http://en.wikipedia.org/wiki/Spin_lock
aka "busy waiting". A thread is polling <something> until <something> says
"ok" and the thread continues working.Quoted 3 lines
thanks
ankit
Have fun,
RobinQuoted 8 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.linux-learn.org/faqs________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html