On Thu, Aug 24, 2000 at 11:28:07AM -0500, Troy Davis wrote:
> Hello all-
>     I want to create a thread (or process) that executes on a regular
> basis (about 20 times per second - 20 hz) in user space.  Doing this
> using the rtlinux thread library in kernel space is very easy, but it
> does not appear to be the case in user space using the regular pthread
> library in linux.  Another method of doing this would be to utilize a
> rtlinux timer or thread in a module but I'm unsure of how to trigger a
> function in user space from an event in rtlinux.  What I'm trying to do
> is create an interrupt driven read/write function in user space to send
> and poll for messages over a tcp/ip connection.  The messages being sent
> over tcp/ip do not need to occur in real-time, so a simple 'is there a
> message?  okay - send it or receive it' will work.  Anyone have any
> ideas on this?

I'm a little confused about what you want to do. It sounds like 
there is a comlete, in Linux, solution using sched_setsched and 
select and maybe rtl fifos.

         make my process RR
         do{ read a rt fifo to see when its time to send a message
             send the message
            }

where the RT thread sends the notification via the fifo.

If you want to try this, please email me for some fifo-speedup code.



-- 
---------------------------------------------------------
Victor Yodaiken 
Finite State Machine Labs: The RTLinux Company.
 www.fsmlabs.com  www.rtlinux.com

-- [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/

Reply via email to