Can the type of compilation used affect the execution of my program?
Yes, you should use the compilation options to compile the time-critical code. By default, Java does things lazily. The classes are loaded, initialized, and compiled dynamically when needed for the first time.. This creates non-determinism. Java RTS provides a compilation scheme to avoid dynamic compilation delays. By default, the Just-In-Time (JIT) is used for java.lang.Threads. The other, real-time, threads use Initialization Time Compilation (ITC). You specify in a file the list of methods to be compiled for these threads, and they will be compiled when their class is initialized. To make this more user-friendly, the file can be automatically generated with a command-line option. This is documented in the Compilation Guide for the Java RTS 2.1 product.
Yes, you should use the compilation options to compile the time-critical code. By default, Java does things lazily. The classes are loaded, initialized, and compiled dynamically when needed for the first time. This creates non-determinism. Java RTS provides a compilation scheme to avoid dynamic compilation delays. By default, the Just-In-Time (JIT) is used for java.lang.Threads. The other, real-time, threads use Initialization Time Compilation (ITC). You specify in a file the list of methods to be compiled for these threads, and they will be compiled when their class is initialized. To make this more user-friendly, the file can be automatically generated with a command-line option. This is documented in the Compilation Guide for the Java RTS product.