Java implementation of a process scheduler simulation.