HARD REAL TIME PYTHON

Kurt Mueller mu at problemlos.ch
Tue Oct 7 06:22:13 EDT 2008


Am 07.10.2008 um 11:44 schrieb Diez B. Roggisch:
> Kurt Mueller wrote:
>> David,
>> As others mentioned before, python is not the right tool for "HARD
>> REAL TIME".
>> But: Maybe you can isolate the part of your application that needs
>> "HARD REAL TIME".
>>    Then implement this part in an approriate Environment (Language,
>> OS, HW).
>>    Then implement the rest of your application which is not "HARD
>> REAL TIME"
>>    in python.
> I've done this using RTAI + ctypes. Of course the hard realtime  
> tasks are
> written in C - but only the absolutely minimal core.
> Works like a charm.

(Btw, what is this application like)


Yes.
The key is to
!*isolate*!
the part of the application that needs "HARD REAL TIME".
Thats what you have done with the "absolutely minimal core"
in RTAI + ctypes.



Sometimes it is even questionable if an application really
needs "HARD REAL TIME".
sometimes it is enough to have "soft real time" or even
"fast enough" is enough.

Good enough is good enough!

"HARD REAL TIME" is mostly expensive.



Grüessli
-- 
Kurt Müller, mu at problemlos.ch




More information about the Python-list mailing list