Sorry for newbie question.

  I'll do some questions about the Frank example  ( frank_module.c )

  1) If the pthread_wait_np() function isn't blocking, and rtf_get()
isn't too, the following
       function rtf_put() go on writing in the fifo a lot of time ( the
period is fast );
       if that's right it means that before the frank_app read, a lot of
strng "Frank" "Zappa"
       are lost.



   2) Why after have reading from fifo, my_handler function needs
pthread_wakeup_np() ?



  3) The real time thread code ( function thread_code() ) ran the code
between
       while(1)  of for(;;) loop ( is it correct ? ) . Why some times
pthread_wait_np()
       run as the first istruction and some time ad the last


   4) The istrutcions between
         void *thread_code(void *t)
                           ...
                           ....
                 while(1).....

          runs only one time ?
          If it's run only one time what can I do, what kind of
instructions can I put in ?


   5)  I have to tranfer some data (  8000 unsigned char ) from a user
process to a RT task.

         If I understood right I would use my_handler() function. The
8000 unsigned char
         must be send to the parallel port at a determinated period.

         How have I to structure the while cicle in the body function
thread_code() ?



         Alessandro

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