Queued Control Instruction Processing for Embedded Batch Commands
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing control methods are inefficient when a large-scale system issues a large number of control instructions to an embedded system in a short time, leading to reduced processing efficiency.
Innovation Solution
A method and apparatus that involve receiving a control instruction through a dedicated thread, determining its legality, storing it in a queue if legal, and processing it through another thread, while sending a message to the sender to stop further instructions, and managing query requests to improve efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If the embedded system executes control instructions sequentially one by one, then the system maintains simple processing logic, but the instruction processing efficiency deteriorates when a large number of instructions are issued in a short time
Solution Approach 1:
The patent divides the control system into two independent threads: a control instruction receiving thread and a control instruction processing thread. The receiving thread handles instruction reception and queue management, while the processing thread handles actual instruction execution. This segmentation allows parallel operation of instruction reception and processing, improving throughput without significantly increasing perceived system complexity.
Solution Approach 2:
The patent introduces a control instruction queue as an intermediary buffer between the receiving thread and the processing thread. Instructions are first stored in the queue by the receiving thread, then retrieved and executed by the processing thread. This intermediary decouples the reception and execution operations, allowing them to proceed independently and simultaneously, thereby improving instruction processing efficiency.
2Loss of time
If the embedded system processes each instruction immediately upon receipt, then the response time is short, but the system cannot handle batch instructions efficiently leading to time loss
Solution Approach 1:
The receiving thread performs preliminary actions by validating instructions and pre-storing them in the control instruction queue before the processing thread executes them. This preliminary preparation allows the processing thread to efficiently retrieve and execute instructions without interruption, reducing overall processing time while maintaining batch handling capability.
Solution Approach 2:
The patent ensures continuous operation of both threads: the receiving thread continuously receives and validates instructions, storing them in the queue, while the processing thread continuously retrieves and executes instructions from the queue. This continuous parallel operation eliminates idle time and maximizes system productivity for batch instruction handling.
Data Source
AI summary
A control instruction processing method, apparatus and a device, and a computer storage medium. The method is applied to a first control system. The method includes: receiving a target control instruction on the basis of a control instruction receiving thread, the target control instruction including a control instruction sent by a second control system that controls the first control system (S101); determining whether the target control instruction is legitimate (S102); if the target control instruction is legitimate, storing the target control instruction in a pre-set queue, and sending, to the second control system, information which represents the fact that the target control instruction has been received, such that the second control system ends the sending of the target control instruction (S103); and processing the control instruction in the pre-set queue on the basis of a control instruction processing thread (S104).

