Thank you Glenn for the reply. I was able to solve this issue with a kernel
module by changing the nice value. now have the issue of measuring..I mean
after the change is there more cpu usage etc. ex-top gives cpu usage. what
are the cmds or methods of measuring cpu usage effectively (to test the
effects of before and after renicing).

On Wed, Jun 6, 2012 at 11:43 AM, Glenn Kasten <gkas...@android.com> wrote:

> See setpriority(2). The calling process will need CAP_SYS_NICE capability;
> see capabilities(7).
>
>
> On Thursday, May 31, 2012 6:30:43 PM UTC-7, DK wrote:
>>
>> Hi,
>>
>> I want to renice the value of a process depending on a sensor
>> value(GPS), with out issuing the renice cmd. How can this be achieved?
>> writing a kernel module? a shell script(are they possible??)
>>
>> Regards,
>> Kanishka
>
>  --
> unsubscribe: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel
>

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to