The invention provides an
interrupt request method based on
time overhead and a control device, and belongs to the technical field of
data processing, and the method comprises the following steps:
network communication equipment receives a message needing to be uploaded to a CPU (
Central Processing Unit), analyzes the message, and judges a switching condition according to the remaining
time overhead of a current transaction, the execution interrupt
switching time overhead and a dynamic interrupt priority mechanism; if the priority of the message is higher than the priority of the current transaction or the remaining
time overhead for completing the current transaction is greater than the time overhead for executing interruption switching, generating an interruption request and notifying a CPU (
Central Processing Unit) to process; otherwise, after waiting for the CPU to complete the current transaction, generating an
interrupt request and notifying the CPU to process. The method has the beneficial effects that the problem of low use efficiency of the CPU caused by frequent response interruption and task switching of the CPU when the
network data flow is relatively large is avoided, and the real-time performance of data uploading is kept while the use efficiency of the CPU is improved.