forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Sat Dec 06, 2008 11:59 pm    Post subject: Modifying a target thread's Priority known it's UID Reply with quote

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.
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sun Dec 07, 2008 12:40 am    Post subject: Reply with quote

I think that sceKernelChangeThreadPriority can help you
_________________
Get Xplora!
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Sun Dec 07, 2008 2:27 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Dec 07, 2008 7:28 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group