Re: Question about PF_NOFREEZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux