>> Hi,
>> I have a question regarding short sleeps (under 10 millisec).

1. Busy wait : It is like the story about Abed (in "Yalkut Hakzavim") - Abed
   could throw a grenade to 80 meters. Once he needed to throw to 50 meters
   he stepped back 30 ...

2. You can't do idle wait less then 10mSec. The clock in PC is set to that
value
   (probably can be manipulate, but it will result so many things so better
not). It
   mean interrupt at 100Hz. Accurate clock is not good enough - you need an
   "alarm clock"; a timer, that will give you an interrupt as you choose.
You can
   by such PCI cards, just check if it supported.
    Now, once you have an interrupt at you choice, you can either execute
your
   needs at ISR level, or, using the select (man 2 select) with a pipe
descriptor
   to which the ISR write. Note that here you need preemption and R.T.
priority
   like Eran wrote.

Feel free to contact me for more details.

        Iftach
(Orna - I want royalties).


This e-mail message has been sent by Elbit Systems Ltd.
and is for the use of the intended recipients only.
The message may contain privileged or confidential information .
If you are not the intended recipient you are hereby notified that any use,
distribution or copying of this communication is strictly prohibited,
and you are requested to delete the e-mail and any attachments
and notify the sender immediately.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to