Re: thread_policy_set() error
Re: thread_policy_set() error
- Subject: Re: thread_policy_set() error
- From: Quinn <email@hidden>
- Date: Wed, 24 Nov 2004 16:47:38 +0000
At 19:18 -0800 22/11/04, Arrigo Benedetti wrote:
and the function fails with error code 4 (invalid parameters).
I am running the code on a Powermac dual G5, where the bus speed is
1250000000. According to thread_policy.h, period, computation and constraint
should be specified in Absolute Time units, and I read on an old
thread on this list
that in a second there should be 1250000000 divided by 4 Absolute Time units.
Absolute time units are hardware dependent: they mean completely
different things on the G4 and the G5. To generate absolute time
values you must consult the time base, which you can get using
mach_timebase_info.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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