Thread Scheduling Migration for Composition Tasks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

As more applications are installed or more files are stored in an electronic device, freezing may occur during application execution, reducing application smoothness and affecting user experience.

Innovation Solution

A thread scheduling method that dynamically migrates tasks of composition threads or send-for-display threads from one processing unit to another when they are in a runnable state for an extended period, reducing the likelihood of task blocking and improving device performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If thread priority is set to ensure critical tasks execute first, then task completion speed is improved, but lower-priority threads (composition/send-for-display threads) may be blocked and cause freezing

Engineering Contradiction:
Improvetask completion speedVSAvoidsystem freezing probability
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent applies dynamic thread migration to move composition threads or send-for-display threads from the first processing unit to the second processing unit when they are in a runnable state. This dynamic adjustment ensures that lower-priority threads can still execute their tasks without causing system freezing, while maintaining the priority-based scheduling for critical tasks. The migration mechanism resolves the contradiction by providing an escape route for blocked threads without compromising the speed advantage of high-priority thread execution.

Inventive Principle:
Principle #15Dynamics

2Adaptability or versatility

If more applications and files are stored in the device, then device functionality is improved, but freezing occurs during application execution reducing smoothness

Engineering Contradiction:
Improvedevice functionalityVSAvoidapplication smoothness
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent implements a dynamic thread migration mechanism that detects when composition threads or send-for-display threads are in a runnable state and migrates them to the second processing unit. This dynamic response prevents blocking and maintains application smoothness even as the number of installed applications and stored files increases. The system adapts its scheduling behavior in real-time to prevent freezing while preserving the enhanced functionality provided by multiple applications.

Inventive Principle:
Principle #15Dynamics

3Productivity

If thread migration is implemented to prevent blocking, then system smoothness is improved, but device complexity increases

Engineering Contradiction:
Improvesystem smoothnessVSAvoidscheduling mechanism complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent divides the processing units into two distinct segments: a first processing unit for executing high-priority critical tasks and a second processing unit for executing composition or send-for-display tasks. This segmentation allows the complex thread migration logic to be isolated and managed separately, simplifying the overall scheduling mechanism. By segmenting the processing responsibilities, the system achieves improved smoothness through targeted migration while keeping the complexity contained within a specific modular framework.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20250138871A1Thread scheduling method and electronic device
Publication Date: 2025.05.01 HUAWEI TECH CO LTD
  • US20250138871A1 patent drawing
  • US20250138871A1 patent drawing
  • US20250138871A1 patent drawing

AI summary

An electronic device receives a first operation; detects that a first thread is in a runnable state on a first processing unit, and a second thread runs on the first processing unit; and migrates a first task of the first thread to a second processing unit, so that the first thread executes, on the second processing unit, the first task associated with the first operation, where the first task includes a layer composition task or a send-for-display task. The first thread includes a composition thread or a send-for-display thread, and a priority of the first thread is lower than a priority of the second thread.