public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Robin Doer <robin@robind.de>
To: Ankit Jain <ankitjain1580@yahoo.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: Mutual Exclusion in Kernel
Date: Wed, 6 Oct 2004 16:04:12 +0200	[thread overview]
Message-ID: <200410061604.16497.robin@robind.de> (raw)
In-Reply-To: <20041006085523.35414.qmail@web52903.mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]

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:
> but this is like semaphore?
>
> thanks again
>
> ankit
>
>  --- Robin Doer <robin@robind.de> wrote:
> > Good morning!
> >
> > Ankit Jain (ankitjain1580@yahoo.com) 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 majordomo@vger.kernel.org
> > 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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

       reply	other threads:[~2004-10-06 14:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20041006085523.35414.qmail@web52903.mail.yahoo.com>
2004-10-06 14:04 ` Robin Doer [this message]
     [not found] <577528CFDFEFA643B3324B88812B57FE2D9B67@inhyms21.ca.com>
2004-10-06  5:50 ` Mutual Exclusion in Kernel Ankit Jain
2004-10-06  8:43   ` Robin Doer
2004-10-07  5:18     ` kernel kernel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200410061604.16497.robin@robind.de \
    --to=robin@robind.de \
    --cc=ankitjain1580@yahoo.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox