Pthread Priority
Pthread Priority
- Subject: Pthread Priority
- From: Romain Marucchi <email@hidden>
- Date: Wed, 20 Aug 2008 16:01:51 +0800
Im porting a Linux app to the Mac and have the following code to set my thread priority? The results are not as expected Im I missing something?
... ... struct sched_param param; int policy = SCHED_OTHER;
priority = VERY_HIGH;
param.sched_priority = priority; pthread_setschedparam( pthread_self(), policy, ¶m ); ... ...
And I got the following def. for my priorities:
VERY_LOW = 10, LOW = 5, NORMAL = 0, HIGH = -5, HIGH = -10
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden