[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200708101719.27558.rjw@sisk.pl>
Date: Fri, 10 Aug 2007 17:19:27 +0200
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: "jidong xiao" <jidong.xiao@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: Question about PF_NOFREEZE
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists