Re: MacOS X Scheduler
Re: MacOS X Scheduler
- Subject: Re: MacOS X Scheduler
- From: Brian Bergstrand <email@hidden>
- Date: Tue, 26 Oct 2004 09:24:56 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Use 'sysctl kern.clockrate'. On my machine this returns:
kern.clockrate: hz = 100, tick = 10000, profhz = 100, stathz = 100
The one you want is 'tick': 10000usecs
You can get this value in your app. with a call to sysctl() using the
defines in /usr/include/sys/sysctl.h.
HTH.
On Oct 26, 2004, at 8:23 AM, Pierre Jomain wrote:
> Hi all,
>
> I need to know what is the quantum (in time or cycles) of the Darwin
> scheduler built in Mac OS X.3.
> I tried to look at the source ... but it's like finding a needle in a
> haystack!
>
> Thanks in advance,
>
> Pierre
>
Brian Bergstrand <http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <http://www.bergstrand.org/brian/misc/public_key.txt>
I disapprove of what you say, but will defend to the death your right
to say it. - Voltaire
As of 09:17:04 AM, iTunes is playing "Say Hello To Heaven" from "Temple
of the Dog" by "Temple of the Dog"
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
iQA/AwUBQX5QOnnR2Fu2x7aiEQLLYwCgw3SFuVKktL8N5jTlXaIWEpCUVbEAn3C9
kCmZr9/lLnrqAMAYj+C4KtaE
=vYYX
-----END PGP SIGNATURE-----
_______________________________________________
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