Android Broadcast Queue Segmentation for Message Prioritization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In Android systems, the broadcasting mechanism often results in a long broadcast queue when message distribution speed is slower than message entry, leading to blocking issues and unsmooth information transmission, particularly due to the mixing of system and third-party application messages which can cause system messages to be delayed or blocked.
Innovation Solution
Creating separate broadcast transmission queues for different types of messages, such as system and third-party application messages, and adjusting their sequences based on transmitter grades to prioritize system messages, allowing for parallel transmission and improving distribution speed.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If all broadcast messages are queued in a single broadcast queue, then the system structure is simple, but the broadcast distribution speed decreases and blocking problems occur
Solution Approach 1:
The patent divides the single broadcast queue into multiple separate queues (system broadcast queue and third-party application broadcast queue) based on message source. This segmentation allows parallel processing of different message types, increasing overall broadcast distribution speed while maintaining manageable system complexity through clear queue separation.
2Ease of operation
If all broadcast messages are processed in sequence from a single queue, then the processing logic is simple, but system messages may be delayed by third-party application messages
Solution Approach 1:
The patent separates system broadcast messages and third-party application broadcast messages into different queues. This ensures that system messages are processed independently and not blocked by third-party messages, guaranteeing timely delivery of critical system notifications while keeping processing logic straightforward through dedicated queue handling.
Solution Approach 2:
The patent applies different processing priorities to different message sources by creating dedicated queues for system messages versus third-party messages. System messages receive preferential treatment through their own queue, ensuring they are processed with higher priority and timeliness, while third-party messages are handled separately without interfering with system operations.
3Device complexity
If broadcast messages from multiple sources are mixed in one queue, then queue management is simple, but the transmission smoothness deteriorates due to blocking
Solution Approach 1:
The patent implements segmentation by creating separate broadcast queues for system messages and third-party application messages. This prevents mixing of different message types in a single queue, eliminating blocking issues where third-party messages could delay system messages, thereby ensuring smooth and stable information transmission across the system.
Data Source
Figure 1a
Figure 1b~1c
Figure 2
AI summary
Disclosed in an embodiment of the present invention are a broadcast transmission method, a device, a terminal, and a storage medium, the method comprising: creating broadcast transmission queues corresponding to types of broadcast messages; detecting a type of a received broadcast message; and transferring the received broadcast message into a broadcast transmission queue corresponding to the type of the broadcast message, and transmitting the broadcast message in parallel to a broadcast receiver.