webwiseguys wrote:Huh? Deadline? Are we talking about software development? I think you meant The "Software Life-Cycle". What Salwan meant is that Python is an "interpreted" language vs C++ which is a "compiled" language. You can run Python script right after it's written, whereas C++ needs to be compiled before it can be executed. Python is as "real-time" as you can get.
The OP never mentioned software lifecycle, he just asked if Python is a real time language.
Heater is correct:
"real-time" is about dead lines.
sums it up, whatever that deadline is. Perhaps the distinction is that the deadline must
be met. An OS should respond to user keystrokes or mouse movements in a timely manner or people complain, but its not called "real time" because the world will not end if the mouse lags a bit now and again.
For real time stuff the execution time should be predictable. There are languages specifically for this, but a language like C with no run-time overheads is a better choice than a slow interpreted language such as Python. And any language that pauses at unpredictable intervals for garbage collection say, is a no no.
salwan wrote:Hi guys i have a first time use raspberry pi Please i need your advise which programming language better to program raspberry pi C++ or python to control gpio with Gui graphical applications ? so i used to program c/c++ to program microcontroller by using compilers
You dont need C++ for the GPIO, there is a great library http://abyz.co.uk/rpi/pigpio/
intended for C and its probably the fastest around. The Python support is excellent too of course.
As previously stated, choose the best language for your ability or your application first.