Hi All, Spin lock is a mutual exclusion strategy which is used in Multiprocessor machanies.
When i resource is not available for a particular thread, it wont be removed from TASK_RUNNING status and put into the corresponding event Q. Instead it will loop around the processor, in closed cycles until the resource is available. So when the thread which currently owns the resource in other processor leaves the resource, the loop thread can access the resource. This can avoid the Thundering Herd problem as well as the overhead of pushing the thread into the Event Q.. Thanks Amrith On Wed, 06 Oct 2004 10:43:20 +0200, Robin Doer <[EMAIL PROTECTED]> wrote: > Good morning! > > Ankit Jain ([EMAIL PROTECTED]) schrieb: > > > > 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. > > > > > thanks > > > > ankit > > Have fun, > Robin > > > > - > 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 > - 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
