+ 12

Why do we choose C for real time systems programming?

Why is that C programming language is preffered to work with real time systems (systems which must respond with in a specific duration otherwise if a certain deadline is passed the outcome will be total failure or a disaster, for example air traffic control system)? I assumed it may be because of C programs are fast. Is there any reason other than this or more precise reason?

14th Dec 2018, 8:35 PM
Byk
5 Respuestas
+ 4
C and C++ are extremely close to the hardware in terms of high and low level languages. They are much more powerful, fast, and reliable than most other high level languages.
14th Dec 2018, 9:20 PM
Dread
Dread - avatar
+ 2
C is more close to hardware and is often referred to as hardware oriented programming language. That's one reason why it is still used to this day. Real Time systems have some special requirements like static priority levels, support for priority protocols like PIP, PCP and HLP. These could only be fulfilled by c language. Also both windows and Unix OS have some limitations which limits our capability to use them as a real time OS. So we can make modifications and improvements in OS through C as most of the Operating System are coded in C Language. Also if you search about Real time systems, you will find that most of Real time systems are Embedded Real TIME OS. This could only be accomplished by C to emedd Real Time applications in Hardware.
16th Dec 2018, 9:15 AM
Yash Raghava
Yash Raghava - avatar
+ 1
As far as I know, what makes C / C++ stand out as languages are: the power it gives you over everything, the speed, no doubt on that, but also these languages are able to update a lot of entities without slowing down.
14th Dec 2018, 9:06 PM
voidneo
+ 1
As you know , now also C is the fastest language. Which makes it best to use and one feature also .It is hardware implimented .thats why it is easy to interact with hardware through C. Thanks
15th Dec 2018, 6:56 AM
Sudhir Kumar
Sudhir Kumar - avatar
+ 1
C language is the basic and first computer language it can able to perform in any situation
15th Dec 2018, 8:11 AM
M.n.v.Varma
M.n.v.Varma - avatar