| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I have a requirement that my thread wake up every 20ms no matter what. When I create timer using setitimer() it does indeed fire within about 1ms. The only problem is that I have with this model is that the signal gets dispatched to a random thread instead of my signal handling thread.
The other approach I looked into was to just call usleep() for the proper amount of time but the accuracy is very different. With that setup I get delays of several extra ms.
| References: | |
| >Realtime Programing on MacOSX (From: RJ Auburn <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.