Android Broadcast Receiver Queue Segmentation for Parallel Processing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In Android systems, broadcast messages are not processed in a timely manner due to time-consuming operations by some applications, leading to increased power consumption and reduced system stability, as there is a lack of effective management mechanisms for broadcast receivers.
Innovation Solution
A method is introduced to adjust the broadcast receiver queue by acquiring historical parameters, determining if they meet predefined conditions, and moving target broadcast receivers to a secondary queue, allowing other receivers to process messages in parallel, thereby improving processing speed and reducing timeouts.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If all broadcast receivers process messages sequentially in a single queue, then system simplicity is maintained, but processing speed decreases and timeouts increase
Solution Approach 1:
The patent divides the single broadcast receiver queue into multiple queues (first broadcast receiver queue and second broadcast receiver queue) based on historical parameters. This segmentation allows different receivers to be processed in parallel across multiple queues, improving processing speed while maintaining manageable complexity through structured queue organization.
Solution Approach 2:
The patent dynamically adjusts the queue structure by moving receivers between the first and second queues based on their historical parameters and performance characteristics. This dynamic adjustment optimizes processing speed by adapting the queue configuration to the actual performance of individual receivers rather than using a static single-queue approach.
2Reliability
If time-consuming operations are allowed in broadcast receivers, then application functionality is maintained, but system stability decreases and power consumption increases
Solution Approach 1:
The patent applies different handling strategies to different receivers based on their individual historical parameters. Receivers with poor historical performance are moved to the second queue with adjusted processing strategies, while receivers with good performance remain in the first queue. This local quality approach maintains system stability by isolating problematic receivers without affecting the overall processing efficiency for well-performing receivers.
Solution Approach 2:
The patent changes the processing parameters for receivers in the second queue based on their historical performance data. By adjusting processing priorities, timeouts, and resource allocation parameters for specific receivers, the system can maintain stability for time-consuming operations while preventing them from negatively impacting overall broadcast message processing efficiency.
3Productivity
If receivers with poor historical performance remain in the main queue, then queue simplicity is maintained, but processing timeouts increase and system performance decreases
Solution Approach 1:
The patent segments receivers into two distinct queues based on their historical performance parameters. This segmentation isolates receivers with poor performance history from the main processing queue, preventing them from causing timeouts and delays for other receivers. The increased productivity is achieved by ensuring that well-performing receivers are not blocked by poorly performing ones, while the complexity is managed through a clear two-queue structure with defined movement criteria.
Data Source
AI summary
Provided are a method for adjusting a broadcast receiver queue, an apparatus, a storage medium, and an electronic device. The method may include: acquiring a historical parameter of a broadcast receiver; determining whether the historical parameter meets a first predefined condition; when the historical parameter of a first target broadcast receiver in a first broadcast receiver queue meets the first predefined condition, generating a second broadcast receiver queue; and moving the first target broadcast receiver to the second broadcast receiver queue, such that broadcast receivers other than the first target broadcast receiver in the first broadcast receiver queue and the first broadcast receiver in the second broadcast receiver queue may process the broadcast messages in parallel.


