Search code examples
javagenerated-code

Why is using Java unsafe in Unmanned Aerial Vehicles?


I am using Java on a UAV project, and have been told that it is often not used when designing military UAVs due to safety concerns. Why is this? I know it has something to do with the fact that it generates it's own code, but can anyone with knowledge of UAVs go into a little more detail about this?


Solution

  • It is inherently inconsistent for speed.

    As it uses it's own garbage collector it is inevitable that when GC kicks in the rest of the system must slow down a little to accommodate it. Because of that you cannot guarantee the timeliness of your code.

    Don't get me wrong - this is not a critique of Java - I am just saying that in Java you cannot guarantee that a certain piece of code will always run within a certain amount of time.