fadden <fadden <at> android.com> writes:
> > On Dec 15, 4:03 pm, Doug <[email protected]> wrote: > > Does anyone know in Android/Linux if new threads inherit the priority > > of the creating thread? I'm setting the priority of a thread using > > android.os.Process.setThreadPriority, which calls permanently into > > native code, and that native code is going to create more threads, so > > I'd like to know what priority those natively-created thread are going > > to run with. > > You can use "adb shell ps -p -t" to display all threads in all > processes, with their priorities. > Fadden - On executing this command, I see priority and nice values. Sometimes I tend to adjust nice values using 'nice' command to get more priority to my thread. But the behaviour is not consistant. On non-rooted phone, how can set higher priority (Priority: 0 or -Ve) to my native thread ? Thanks for your time. regards -Bytes -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

