2005-10-08 03:45:17

by Coywolf Qi Hunt

[permalink] [raw]
Subject: [q] how to make sure a process is not on CPU?

Hello,

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?
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/


2005-10-09 19:43:44

by Pavel Machek

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

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