Interrupt processing method and device, electronic equipment and storage medium
A processing method and processor technology, applied in the computer field, can solve the problems that the lower half of the interrupt cannot be processed in time, and the interrupt processing efficiency is not high enough.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] image 3 The implementation flow of the interrupt processing method provided by Embodiment 1 of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
[0043] In step S301, before the first processor enters the idle state, the interrupt processing function linked list of the second processor is obtained.
[0044]The embodiments of the present invention are applicable to electronic equipment, and the electronic equipment includes a plurality of processors. When the electronic equipment is running, each processor is either executing instructions or is in an idle state. When processing interrupts, or running tasks, the processor is executing instructions; when no tasks and interrupts are being processed, the processor is idle. In general, in a multi-processor system, even in complex application scenarios, not all processors will run at full capacity a...
Embodiment 2
[0056] Figure 4 An example of the implementation process of the interrupt processing method provided by Embodiment 2 of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
[0057] In step S401, before the first processor enters the idle state, the number of elements of the interrupt processing function linked list of each processor other than the first processor is counted;
[0058] In step S402, obtain the interrupt processing function linked list with the largest number of elements;
[0059] In step S403, it is judged whether the interrupt processing function linked list is not empty, if not empty, then execute step S404, if it is empty, then execute step S408;
[0060] In step S404, obtain a processing function from the interrupt processing function linked list, and delete the obtained processing function from the interrupt processing function link...
Embodiment 3
[0067] Figure 5 The structure of the interrupt processing device provided by the third embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, including:
[0068] A linked list acquisition unit 51, configured to acquire the interrupt processing function linked list of the second processor before the first processor enters the idle state;
[0069] A condition judging unit 52, configured to judge whether the interrupt processing function linked list satisfies a preset condition;
[0070] A function execution unit 53, configured to obtain a processing function from the interrupt processing function list for execution if the interrupt processing function linked list satisfies a preset condition, and delete the obtained processing function from the interrupt processing function linked list;
[0071] A task judging unit 54, configured to judge whether there is currently a ready t...
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