From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: "jidong xiao" <jidong.xiao@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Question about PF_NOFREEZE
Date: Fri, 10 Aug 2007 17:19:27 +0200 [thread overview]
Message-ID: <200708101719.27558.rjw@sisk.pl> (raw)
In-Reply-To: <4104961b0708092219r6fbc5854pc41a4a98a2b79c2a@mail.gmail.com>
On Friday, 10 August 2007 07:19, jidong xiao wrote:
> if one thread set its current->flag with PF_NOFREEZE, then it means
> this thread is unfreezable,does this mean, when the system entered
> into a suspended state, even though all the other threads have already
> gone sleep, this thread still keeps awaken?
It will be able to run when all freezable threads are frozen.
> One thing I am very confused is, if all the other threads goes to
> sleep,can this only one thread(assume only one thread marked itself as
> unfreezable.) still works well?
The question is rather theoretical, because there are some unfreezable threads
in the system. In theory, such a thread can work well as long as it doesn't
need to wait for another thread that is frozen.
Greetings,
Rafael
--
"Premature optimization is the root of all evil." - Donald Knuth
prev parent reply other threads:[~2007-08-10 15:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 5:19 jidong xiao
2007-08-10 15:19 ` Rafael J. Wysocki [this message]
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=200708101719.27558.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=jidong.xiao@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®