In one program I'm updating, I have one rt-task created with the V1
functions and made periodic with:
        rt_task_init()
        rt_task_make_periodic()
                and in the task I use
                        rt_task_wait()
in which I want to port to V3 so I can use some of the newer features of
RTLinux.  Judging from some examples, it looks like all need to do is to use
is:
        pthread_attr_init()
        pthread_create()
        pthread_make_periodic_np()
        pthread_setchedparam()
                and in the task I use
                        pthread_wait_np()
        (with appropriate arguments.)
Is this really all I have to do?

It appears to me that the thread created in this way should function exactly
like the task created with the V1 method and apart from changing
rt_task_wait() to pthread_wait_np() I should need no other changes to the
code of the new thread to get exactly the same performance as the original
task.  Are the new thread and the old task really completely equivalent?

Are there any other gotchas I should be concerned about in getting to the
point where I have the new thread cycling like the old task did?

Thanks,

Norman Dresner
Fellow Avionics Support Systems Engineer & Advanced Signal Processing
Laboratory Administrator
Radar Systems Engineering Department
Electronic Systems and Sensors 
Northrop Grumman Corporation

Voice:  (410) 993 - 2096        Mornings; all-day voice-mail
        (410) 969 - 8068        Afternoons with answering machine
FAX:    (410) 993 - 8084        On-site
        (410) 969 - 8068        Afternoons; call first to arrange
E-Mail: Mornings:       mailto:[EMAIL PROTECTED]
        Afternoons:     mailto:[EMAIL PROTECTED]

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

Reply via email to