* Question about PF_NOFREEZE
@ 2007-08-10 5:19 jidong xiao
2007-08-10 15:19 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: jidong xiao @ 2007-08-10 5:19 UTC (permalink / raw)
To: linux-kernel
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?
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?
Regards
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about PF_NOFREEZE
2007-08-10 5:19 Question about PF_NOFREEZE jidong xiao
@ 2007-08-10 15:19 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2007-08-10 15:19 UTC (permalink / raw)
To: jidong xiao; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-10 15:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-10 5:19 Question about PF_NOFREEZE jidong xiao
2007-08-10 15:19 ` Rafael J. Wysocki
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®