Binder Thread Priority Holding for Faster Work Scheduling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In conventional thread scheduling methods, the binder thread in terminal devices often fails to be scheduled in a timely manner, leading to delays in processing new works.

Innovation Solution

A method is introduced where the processing priority of the binder thread is elevated temporarily and only restored when the thread is idle, thereby reducing the occurrence of the thread being in a runnable state.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the processing priority of the binder thread is restored immediately after completing a work, then the thread can return to its normal state, but the thread frequently enters the runnable state causing scheduling delays

Engineering Contradiction:
Improvethread scheduling reliabilityVSAvoidthread scheduling delay
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies dynamics by making the thread priority adjustable rather than fixed. The binder thread's priority is dynamically changed from a normal first priority to a elevated second priority during work execution, and this priority state is maintained beyond the immediate completion moment. This dynamic priority adjustment allows the thread to remain in a more favorable scheduling position, reducing transitions to the runnable state and improving scheduling reliability.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent implements preliminary action by elevating the thread priority before the work is fully completed and maintaining it afterward. Instead of restoring the priority immediately upon completion, the system proactively maintains the elevated priority state, preparing the thread to be scheduled more efficiently for subsequent works. This preliminary maintenance of high priority prevents scheduling delays before they occur.

Inventive Principle:
Principle #10Preliminary action

2Speed

If the processing priority of the binder thread is elevated before executing a work, then the thread can be scheduled more quickly, but the priority management becomes more complex

Engineering Contradiction:
Improvethread scheduling speedVSAvoidpriority management complexity
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The patent applies parameter changes by modifying the priority parameter of the binder thread from a normal state (first priority) to an elevated state (second priority) before work execution. This parameter change enables faster scheduling by ensuring the thread is in a high-priority state when needed. The complexity is managed by implementing this parameter change in a controlled manner with clear state transitions and maintenance logic.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250383916A1Thread scheduling method and apparatus
Publication Date: 2025.12.18 HONOR DEVICE CO LTD
  • US20250383916A1 patent drawing
  • US20250383916A1 patent drawing
  • US20250383916A1 patent drawing

AI summary

This application provides a thread scheduling method. The method includes: At a first moment, in response to a first instruction, a terminal device changes, based on the first instruction, a processing priority of a second thread from a first priority to a second priority before executing a first work, where a processing priority of the second priority is higher than a processing priority of the first priority, the second thread carries a first identifier after the first moment; the terminal device executes the first work based on the second thread having the second priority; and at a second moment, when the terminal device determines that there is no to-be-executed work in the second thread, and the second thread carries the first identifier, the terminal device skips restoring the processing priority of the second thread.