Skip to contentSkip to conversation

Mutual Exclusion in Kernel

DISCUSSION Robin Doer 1 participant 1 message Oct 6, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Robin Doer

author
#1 lore raw

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,
Robin

Quoted 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