Why is c preferred over java in most real time applications

Why is C preferable over Java in most real-time applications? For example, an air line. I want a few reasons, except that Java is a bit slower.

+5
source share
7 answers

There are several reasons:

  • History is a system of airlines older than Java. This may need to be rewritten, but today it is not as I know.
  • In real time, it usually avoids garbage collection, because you cannot wait for the system to wait until the GC thread completes its work. Things should be more deterministic in real-time control situations. This is true for Java, C #, and any other language using the GC.

There is a real-time version of Java , but I do not know how widely it is used.

I'm not sure that the C / C ++ output, which has always been faster than Java, is still true for JDK 6. Much has changed since version 1.0, when many benchmarks were run (for example, faster object creation, a new memory model, new generation GC algorithms, revised reflection, etc.).

+9
source

. . Java, , , . , 150 , .

C , , /, .

C, , ADA. , C ( ) , Java.

+7
+3

" ".

" " C RTLinux:

http://en.wikipedia.org/wiki/RTLinux

: ( ) Java. , - .

+1

java . .

  • RT Java Sun (JSR-1), API RTOS .
  • JVM , , JRockit Realtime GC , gc, 1 , 10 .

, , , . , , , ( ), , , , . , , java, - . Javolution - ( , ( )).

, , . java , , .

+1

C . Java JVM. , C On-the-Fly, java - (.class), JVM.

- , - .

0

Cobol, C.

-3

All Articles