I am working on a simulation program in java, and we are finding that we need a lightweight java process to kick itself off at a certain (randomly generated) time, perform a few tasks, and then schedule the next task (randomly generated as well as generated from the results of the first task).
The program currently runs in a linux environment, but I would like to keep options open such that it could be run on OSX and Windows environments in the future.
How would I schedule these in java without using too much resources on the scheduling?