mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hua Feijun <hua.feijun@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: stop threads failed!
Date: Sat, 17 Dec 2005 16:57:30 +0800	[thread overview]
Message-ID: <3fe1d240512170057h2a1e0929o@mail.gmail.com> (raw)

I want to set threads's status to TASK_STOPPED by the following
code.The syslog has show this rourine has been executed,buf the thread
is still running.Who can tell me the reason?Thanks very much!
write_lock(&tasklist_lock);
do
{
printk("set threads stopped\n");			
p->state = TASK_STOPPED;
} while ((p = next_thread(p)) != leader);
write_unlock(&tasklist_lock);
schedule();

             reply	other threads:[~2005-12-17  8:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-17  8:57 Hua Feijun [this message]
2005-12-18  8:36 ` Nauman Tahir
     [not found]   ` <3fe1d240512181717h59100c1h@mail.gmail.com>
2005-12-19  6:42     ` Nauman Tahir

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=3fe1d240512170057h2a1e0929o@mail.gmail.com \
    --to=hua.feijun@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®