Virtual Display Composition With Thread Isolation Against Screen Freezing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing solutions for virtual displays in electronic devices often result in a freezing screen state due to unresponsive communication between application and image processing processes, leading to poor user experience.
Innovation Solution
Implementing a communication thread in the image processing process to handle cross-process communication with the application process, allowing for normal display interface composition by preventing the image processing process from being blocked by abnormal communication, and deleting the virtual display object when abnormality occurs.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If the image processing process uses an image composition thread to composite both the display interface and virtual display, then the GI composition function is integrated, but when the application process does not respond in time or communication is abnormal, the communication part blocks the image composition thread, causing screen freezing
Solution Approach 1:
The patent divides the image composition thread into two independent threads: a communication thread dedicated to cross-process communication with the application process, and an image composition thread dedicated to GI composition. This segmentation isolates the communication functionality from the composition functionality, preventing communication abnormalities from blocking the composition thread and causing screen freezing.
Solution Approach 2:
The patent introduces a communication thread as an intermediary between the application process and the image composition thread. This intermediary handles all communication operations, protecting the image composition thread from direct communication interruptions and ensuring that composition operations continue uninterrupted even when communication fails.
2Reliability
If the communication thread handles cross-process communication, then the impact of abnormal communication is isolated, but the device complexity increases due to additional thread management
Solution Approach 1:
The patent segments the thread responsibilities by creating a dedicated communication thread for cross-process communication and an image composition thread for composition operations. This clear segmentation simplifies thread management by assigning specific functions to each thread, making the system more maintainable despite the increased number of threads.
Solution Approach 2:
The communication thread autonomously handles communication with the application process, including detecting communication abnormalities and managing the virtual display object lifecycle. This self-service approach reduces the need for complex inter-thread coordination and centralized control, simplifying overall thread management.
3Use of energy by moving object
If the image composition thread is used for both display interface composition and virtual display composition, then resource utilization is efficient, but abnormal communication blocks the entire image processing process
Solution Approach 1:
The patent segments the image composition functionality into separate threads: the image composition thread handles display interface composition, while the communication thread handles virtual display composition and communication. This segmentation ensures that communication abnormalities do not block the image composition thread, maintaining processing continuity and resource utilization.
Solution Approach 2:
The communication thread acts as an intermediary that manages virtual display composition operations, isolating them from the main image composition thread. This intermediary structure allows the image composition thread to continue processing display interface frames without being blocked by communication delays or failures, maintaining efficient resource utilization.
Data Source
AI summary
The embodiments relate to the field of terminals, and provide a processing method for a virtual display and an electronic device. The method includes: communicating with an application process by using a communication thread in an image processing process when the image processing process performs graphic interface (GI) composition of a first frame, to obtain a communication result; and sending a composite GI to the virtual display created by the application process when the communication result is normal, and deleting a virtual display object when the communication result is abnormal. In this case, a task thread of the image processing process is prevented from being blocked when the application process does not respond in time or the communication with the image processing process is abnormal, so that impact from the abnormality is controlled in the communication thread without spreading to other task threads.


