All of lore.kernel.org
 help / color / mirror / Atom feed
From: yeyouqun <yeyouqun1981@gmail.com>
To: lkml <linux-kernel@vger.kernel.org>
Subject: question about wait_event
Date: Mon, 25 Apr 2011 10:32:06 +0800	[thread overview]
Message-ID: <4DB4DD26.3090406@gmail.com> (raw)

Hi guys,I have some doubt about "wait_event". One group processes, say 
A, they calls "wait_event (wq, 1)", and one single process B calls 
"wake_up_all", the question is:

     B only run once, so all the processes in A that hold the lock of 
"wq" after B process, which will sleep on the "wq" forever, is it true? 
If true, how to stop it from happening?

                 reply	other threads:[~2011-04-25  2:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4DB4DD26.3090406@gmail.com \
    --to=yeyouqun1981@gmail.com \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.