Proxy Window Management for Unresponsive Child Windows
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing window management methods in application programs face inefficiencies when handling unresponsive child windows, leading to unnecessary resource consumption and complexity, as they often require creating independent processes for each child window, which can result in resource waste and incorrect handling of temporarily unresponsive states.
Innovation Solution
The method involves creating a proxy window for each child window, allowing communication between threads using asynchronous messages to detect unresponsive states, and removing the child window from the display interface by setting the proxy window to have no parent window, thereby avoiding resource wastage and maintaining system stability.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If independent processes are created for each child window, then window management reliability is improved, but system resource consumption increases and device complexity increases
Solution Approach 1:
The patent merges multiple child window management into a single shared process instead of creating independent processes for each child window. The parent window process manages multiple child windows directly, eliminating the need for separate process creations and reductions in resource consumption while maintaining window management reliability through proper thread and message handling mechanisms.
Solution Approach 2:
The parent window process is designed to perform multiple functions: it manages its own operations and simultaneously manages multiple child windows. This multi-functionality allows a single process to handle various window management tasks without requiring dedicated processes for each child window, thereby reducing overall system resource consumption while maintaining reliable window management.
2Reliability
If child windows are managed independently, then window operation reliability is improved, but device complexity increases
Solution Approach 1:
The patent combines the management of multiple child windows into a single parent window process, eliminating the need for multiple independent processes. This merging reduces system structure complexity by consolidating window management functionality while maintaining operational reliability through proper thread management and asynchronous message handling between the parent process and child windows.
Solution Approach 2:
The patent segments window management functionality into distinct threads within the parent process, where different threads handle different aspects of child window management. This segmentation allows for organized, modular handling of window operations without requiring separate processes, thereby reducing complexity while maintaining reliability through specialized thread functions.
3Reliability
If child windows are closed when unresponsive, then system stability is improved, but resource waste occurs due to premature closures
Solution Approach 1:
The patent implements dynamic monitoring of child window responsiveness through asynchronous messages and timeout mechanisms. Instead of statically closing all unresponsive child windows, the system dynamically determines whether to close a child window based on its responsiveness status, allowing temporarily unresponsive but recoverable windows to remain open while closing only those that are truly non-functional, thereby preventing resource waste while maintaining system stability.
Solution Approach 2:
The patent uses feedback mechanisms through asynchronous messages to continuously monitor child window responsiveness. The parent window receives feedback from child windows about their operational status, and based on this feedback, intelligently decides whether to close the child window. This feedback-driven approach prevents premature closure of recoverable windows while ensuring timely closure of truly unresponsive ones, optimizing both system stability and resource utilization.
Data Source
AI summary
A method and system that timely processes webpage windows after a window is in an unresponsive stage, a parent window of the webpage window will not be affected and closed, thereby reducing operating resources. The method includes creating a child window corresponding to a parent window, a proxy window corresponding to the child, setting a parent of the child to be the proxy, and setting a parent of the proxy to be the parent window, where a thread to which the proxy window belongs communicates with a thread to which the child window belongs by using an asynchronous message, determining based on the proxy thread, a state of the child window and in response to determining that the child window is unresponsive, setting the proxy window to have no parent and removing the child window from a current display by removing the proxy window.


