Re: Is there a <mach/sched.h> in Snow Leopard?
Re: Is there a <mach/sched.h> in Snow Leopard?
- Subject: Re: Is there a <mach/sched.h> in Snow Leopard?
- From: Abdulla Kamar <email@hidden>
- Date: Fri, 28 Jan 2011 16:58:40 +1100
Oh scrub what I just said, I realised you were talking about the kernel API. My mistake.
On Fri, Jan 28, 2011 at 4:57 PM, Abdulla Kamar
<email@hidden> wrote:
There's sched.h which contains:extern int sched_yield(void);
extern int sched_get_priority_min(int);
extern int sched_get_priority_max(int);
There's also: getpriority() and setpriority() in sys/resource.h that may help. There are also some pthread functions that may be of interest too. I've only ever used sched_yield() and pthread_yield_np(), so sorry that I can't be of more help.
On Fri, Jan 28, 2011 at 3:52 PM, Fredrik
<email@hidden> wrote:
Hello.
I recently had a look at Apples kernel programming docs, and they mention the header mach/sched.h in an example covering how to set a threads priority to real-time from user space.
I tried the example but the compiler can't find this file. Is this removed in Snow Leopard? (I saw that the document was a few years old.) If so what other mechanisms can be used for this?
F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Abdulla
--
Abdulla
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden