• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Pthread Priority
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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, &param );
...
...


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

  • Follow-Ups:
    • Re: Pthread Priority
      • From: Ken Thomases <email@hidden>
    • RE: Pthread Priority
      • From: Luca Ciciriello <email@hidden>
  • Prev by Date: Re: kext and std C++ algorithms?
  • Next by Date: XCode 3 and javadoc
  • Previous by thread: Re: kext and std C++ algorithms?
  • Next by thread: RE: Pthread Priority
  • Index(es):
    • Date
    • Thread