Recently, Juphoon registered an invention patent called "a timer dispatch method" with the State Intellectual Property Office (patent number: ZL200610161165.2).
The timer will be widely used in Juphoon software such as ZOS (Zero Operating System). Its sophisticated design can meet the demand of a large number ( tens of thousands) of concurrent timers, while the consumption of system space resources and CPU instruction resources is very low, which can resolve situations requiring a lot of timers.
The use of this technology enhances the technical content and competitiveness of Juphoon software, and will also enable Juphoon to achieve more significant economic benefits.
At present, timers need to synchronize and manage each operation in dealing with systems that require the performance of several asynchronous operations, such as software systems asynchronously performing multiple tasks and net communication systems asynchronously achieving specific services. In practice, due to different tasks or action levels, there are different requirements for the timer, such as the time precision and quantity. In order to ensure timing accuracy, the tasks corresponding to the timer will usually be given higher priority, but this requires more system resources.
It is impossible to reduce system resource consumption while improving the efficiency of timer management and registration by using the existing data structures such as linear models, nonlinear models and binary tree to organize the timer. Besides, these structures lack good time expansibility.
his invention has the following features:
1. It only registers a base timer to the current application system to ensure time efficiency, reduce resources costs on overtime processing and communication overhead between the tasks so as to enhance the system stability.
2. It is software-based, and its base timer can use the timer provided by the system core or timing function in the form of interruption, which can meet the requirement of various situations and platform applications with good flexibility, testability and maintainability.
3. It adopts a sparse matrix management structure and its concrete realization can take many forms, such as the circular linked list.
4. Implementation by use instance of the timer system. It can separate timing services for different users or tasks to improve the operational efficiency of the whole system and support a large number of timers processing concurrently.
5. For the applications with long time intervals and high precision timing, a dynamic compensation mechanism is added to the timer system to compensate for errors existing between timers with long intervals.
In the future, Juphoon will continue to strengthen its technological innovation and improve the technological content and competitiveness of Juphoon products so as to provide customers with better products and services.