Program scheduling and simulation in an operating system environment