REAL-TIME SOFTWARE SCHEDULER FOR PERSONAL COMPUTERS
摘要
A method for operating a real time simulation on a non real time computer platform is disclosed. In the method, a simulated time counter (190) is initialized at a first simulated time step (202). Then, all processor threads that must complete execution during a current simulated time period are run (204). The simulated time counter (190) is increment by a next simulated time step (206) and the process starts again. The method may also include a wall time counter (192) that is initiated at the same time the simulated time counter (190) is initiated. The wall time counter (192) increments at a set interval. The wall time counter (192) is checked against the simulated time counter (190) after all current processor threads are run (320). If the wall time counter (192) is greater than the simulated time counter (190), the simulated time counter (190) is incremented by one time period (326). If the wall time counter (192) is not greater than the simulated time counter (190), a future processor thread is executed (324).