Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff , TyRaNiD
KickinAezz
Posts: 328 Joined: Sun Jun 03, 2007 10:05 pm
Post
by KickinAezz » Sat Dec 06, 2008 11:59 pm
Is it possible to change a thread's priority in the runtime?
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
ne0h
Posts: 386 Joined: Thu Feb 21, 2008 2:15 am
Post
by ne0h » Sun Dec 07, 2008 12:40 am
I think that sceKernelChangeThreadPriority can help you
KickinAezz
Posts: 328 Joined: Sun Jun 03, 2007 10:05 pm
Post
by KickinAezz » Sun Dec 07, 2008 2:27 am
ne0h wrote: I think that sceKernelChangeThreadPriority can help you
Wow... How could I have missed that!
Thanks.
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Torch
Posts: 825 Joined: Wed May 28, 2008 2:50 am
Post
by Torch » Sun Dec 07, 2008 7:28 am
You'll also have to intelligently assign a new priority relative to the other running threads. A simple thread with a 10000 delay in its loop will visibly choke anything with a priority 3 or 4 below its own.