On Thu, 22 Oct 1998, Tommy Thorn wrote:
> Hi all,
>
> while looking for a solution to controlling a servo directly under
> Linux, I came across RT Linux. While at first I thought it looked
> ideal, I was truly surprised to discover that there seems to be no
> wait to let threads sleep for an arbitrary period, as opposed to a
> fixed like with the make_periodic call.
An easy way to do this is with semaphores. Have a periodic task
keep time and release semaphores to the waiting task. Have the
target task wait on the semaphore to sleep. A simple API can set
wake up times, etc. The overhead for the semaphores is usually very
low.
There is a semaphore module for RTL at the following URL:
http://stereotaxis.wustl.edu/~jerry/
cheers,
Rich
*------------------------------------------------------------------*
| INTELLIGENT MACHINES AND MANUFACTURING RESEARCH CENTRE (IMMRC) |
*------------------------------------------------------------------*
| Richard Teltz, | Dept. of Mechanical Engineering,|
| principal research engineer, | McMaster University, |
| tel: (905) 525-9140, x27351 | Hamilton, Ontario, |
| fax: (905) 572-7944 | Canada, |
| email: [EMAIL PROTECTED] | L8S 4L7 |
*------------------------------------------------------------------*
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/