Paolo Mantegazza wrote:
Tomasz Motylewski wrote:

> I guess VT does not use FP, xterm (and Xserver) do use it.

That's why you have to tell your real time scheduler that also Linux is
using the FPU. In fact the real time task swithching is optimized in
such a way to avoid saving/restoring the FPU if only one real time task
is using it.

How can I tell the real-time scheduler that also linux is using the FPU in rt_linux ?
It isn'i done when calling pthread_setfp_np( thread, 1 ) ?
Note also that gcc often uses the FPU to translate to integer numbers in
the form 1E6. So never use 1E6 if you mean it to be 1000000.
In the RTAI examples, in all the "cleanup_module( void )" functions, you
have a wait function  "rt_busy_sleep( 1E7 )". According to what you say,
it should be written " rt_busy_sleep( 10000000 )" ?

I have tried the same program with rtai. It works without a problem.

Regards,

Jacques
 

-- 
 _________________________________
(
)   Jacques GANGLOFF
(   Associate Professor
)   LSIIT / GRAViR                              
(   Bd Sébastien Brant 
)   67400 Illkirch
(   Tel : +33 (0)3 88 65 50 84
)   Fax : +33 (0)3 88 65 54 89
(   http://gravir.u-strasbg.fr
)_________________________________
 


Reply via email to