Mr. Hamilton,

> I'm running a test program. There are two threads.
> One is just to generate clock events for the other.
> 
> So the first thread is set up as periodic with a time 
> interval x and then
> just loops...
>       while (1)
>       {
>               pthread_wait_np();
>               semaphore->signal();
>       }
> 
> The second thread waits on the semaphore, and counts the 
> clock events until
> 1 second passes (i.e. 1/x counts) and prints actual time.
> 
> Therefore, I expect to see print messages of the actual time 
> every 1 second.

        This should work just fine, as near as I can tell.  Since it is so
simple, please post your code so we can have a look at it.  Also, how are
you getting the actual time?

> So, how do others achieve higher rates? From what I read, I get the
> impression that I have to recompile the kernel with 
> #define HZ 1000
> in params.h file.

        Absolutely not.  That is only required to adjust the normal time
slice in standard Linux.  It is not necessary for RTLinux.

Regards,

Steve


--------------------------
Stephen D. Cohen
Engineering Manager
Xybion Sensor Positioning Systems
11528 53rd Street North
Clearwater, FL 33760
Voice: (727) 299-0150
Fax: (727) 299-0804 
[EMAIL PROTECTED]
www.xybion.com



************************************************************************
THIS EMAIL, AND ANY ATTACHMENTS, CONTAINS CONFIDENTIAL AND PRIVILEGED INFORMATION 
INTENDED FOR THE USE OF THE ADDRESSEE. IF YOU ARE NOT THE INTENDED RECIPIENT OR AN 
AUTHORIZED REPRESENTATIVE OF THE RECIPIENT, DO NOT READ OR DISTRIBUTE THE CONTENTS OF 
THIS EMAIL AND DELETE IT FROM YOUR SYSTEM. THIS EMAIL AND ALL ATTACHMENTS HAVE BEEN 
SCANNED FOR VIRUSES AND ARE BELIEVED TO BE VIRUS FREE. HOWEVER, IT IS THE RECIPIENT'S 
RESPONSIBILITY TO ENSURE THAT THEY ARE VIRUS FREE. XYBION DOES NOT ACCEPT ANY 
RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING IN ANY WAY FROM USE OF THIS EMAIL AND 
ATTACHMENTS. XYBION ALSO DOES NOT ACCEPT RESPONSIBILITY FOR PERSONAL EMAIL OR EMAIL 
NOT ASSOCIATED WITH ITS BUSINESS PURPOSES.
************************************************************************

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