I am looking at Sun's Java Real-Time System for an application in the financial/trading domain. In the trading business there are a lot of periods during the day that the CPU is not really busy and then there are bursts of high activity where the CPU should be dedicated to reacting to market conditions (and not GC).
Is it reasonable for me to expect the following behavior? I will run my trading application (using JRTS) on dedicated machines with lots and lots of memory (such that can accommodate any bursts of allocation during bursts of market activity) and GC will use CPU resources only when cycles are available. All my threads will be Non-critical RT Threads that will run at a priority that is higher than the RTGC Normal priority and my Boosted Memory Threshold will be very high (only in boosted mode will GC preempt my threads).
Basically I want GC to run on on idle cycles.
Thanks in advance
As long as the RTGC can satisfy the needs of the application when running during "idle periods" then that is what will happen if you've set the RTGC to have lower priority and it doesn't enter boosted mode.