| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
This maybe off topic but I just want to simply acquire data from a multimeter every 0.5seconds, this seems to work quite good without realtime priority,
however sometimes it misses some values at a given time...so I thought to turn realtime on:
So what I need is AbsoluteTime to set realtime priority, but the result of mach_absolute_time() from the above document
is different from the one which should be used in chapter "Using the Mach Thread API to Influence Scheduling"
http://developer.apple.com/documentation/Darwin/Conceptual/ KernelProgramming/scheduler/chapter_8_section_4.html
I'm developing on a "mac Mini" with a bus speed of 133MHz I used the values of "period, computation and constraint"
as described in the document:
It seems to block the Mac for 8s seconds... before continuing...
So maybe these values are incorrect or can someone explain this lock ?
--Jim
_______________________________________________ Do not post admin requests to the list. They will be ignored. Unix-porting mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/unix-porting/email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.