Re: [q] how to make sure a process is not on CPU?

From: Pavel Machek
Date: Sun Oct 09 2005 - 14:44:22 EST


Hi!

> I'm trying to manipulate a process, I must make sure not only the
> process won't go away under me, also it is not on CPU, and it'll
> return from schedule() at lease once.
>
> Any thoughts?

See kernel/power/process.c
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/