Modifying a target thread's Priority known it's UID

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Modifying a target thread's Priority known it's UID

Post by KickinAezz »

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 »

I think that sceKernelChangeThreadPriority can help you
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

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.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
Post Reply