The invention relates to a method for dispatching a soft real-time
timer and a module thereof, which comprises a dispatching unit, an interrupting unit, an initializing unit and a
management unit. The dispatching unit is used for controlling a
timer dispatching thread of a set up soft real-time
timer, and the inside of the dispatching unit is an unlimited circulation body always obtaining counting semaphores; the interrupting unit is used for controlling the interrupting of the timer and releasing the counting semaphores; wherein, the dispatching unit is synchronous with the interrupting unit through a counting
semaphore; the initializing unit is used for initializing overall variation of the timer so as to connect the interrupting unit and interrupting signals of a hardware
clock and to initialize the dispatching unit; the overall variation comprises the counting semaphores; the
management unit is a front
desk window for users to control the timer, and users set up various soft real-time timers through the
management unit and then set various operation instruments for the timer. By applying the invention, through an information mechanism, when the timer sends out appointed information to a senior user at time, the portability of a
cell phone platform and various demands of the senior user on the
cell phone platform can be met.