Software anomaly detection method and device and electronic equipment
A software abnormality and detection method technology, applied in software testing/debugging, program control devices, multi-programming devices, etc., can solve problems such as time consumption, poor time accuracy, and inability to achieve millisecond-level time accuracy, achieving increased Time Accuracy, Performance Improvement Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] This embodiment provides a software anomaly detection method, see figure 1 A flow chart of a software anomaly detection method shown, the software anomaly detection method includes the following steps:
[0038] Step S102, waking up the target thread every preset time unit.
[0039] In the embodiment of the present invention, the timer component of the time wheel can be initialized at the same time as software initialization. Moreover, after the above two initialization traps are completed, a thread can be created in the process where the software is located, which is called the target thread. The target thread wakes up every preset time unit, and the time unit can be 1-2 milliseconds, and is used to perform software exception checking operations.
[0040] Step S104, using the target thread to determine the timeout event of the function under test in the software based on the time wheel.
[0041] The time wheel is a scheduling model created to solve efficient scheduli...
Embodiment 2
[0048] This embodiment provides another software anomaly detection method, which is implemented on the basis of the above embodiments; see figure 2 A flow chart of another software anomaly detection method is shown, the software anomaly detection method includes the following steps:
[0049] Step S202, waking up the target thread every preset time unit.
[0050] The time wheel is the basis of the implementation of the method provided in this embodiment, so the time wheel will be introduced first. The time wheel is a timer similar to a clock. The time wheel in this embodiment provides three functions: adding a timeout event, deleting a timeout event, and checking whether there is an event that has timed out at the current time point. The accuracy of the time wheel and the maximum timeout time that can be set can be dynamically adjusted according to actual needs. According to the needs of this embodiment, a time wheel with a time accuracy of 1 millisecond and a maximum timeout...
Embodiment 3
[0080] Corresponding to the above method embodiment, the embodiment of the present invention provides a software anomaly detection device, see image 3 A schematic structural diagram of an abnormality detection device is shown, the abnormality detection device includes:
[0081] The target thread wake-up module 31 is used to wake up the target thread every preset time unit at intervals;
[0082] Overtime event determination module 32, for determining the overtime event of the function to be tested in the software based on the time wheel by the target thread;
[0083] The timeout event processing module 33 is configured to execute an event processing function corresponding to the function to be tested.
[0084] The software anomaly detection device provided by the embodiment of the present invention can determine the timeout event of the function to be tested in the software based on the time wheel through the target thread, and execute the event processing function correspond...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com