C is the answer because java can hang for a micro second when garbage collector decides to run and halt the excecution for a second. C with explicit memory allocation is much more determinestic and the programmer has full control over when exactly and how much memory is freed/allocated and can decide not to free memory while preforming safety critical operations