Thread Manager Scheduling for Processor Power Savings
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The high frequency of processor wake-ups due to multiple threads operating simultaneously leads to dense execution periods, preventing the processor from entering an idle mode and resulting in excessive power consumption.
Innovation Solution
A thread manager in the operating system schedules the execution times of multiple threads, calculating time intervals to release the processor until necessary and waking up threads only when predetermined conditions are met, allowing for increased idle time and reduced power usage.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If multiple threads are operated simultaneously with high frequency wake-up, then thread execution responsiveness is improved, but processor power consumption increases
Solution Approach 1:
The patent implements periodic action by scheduling threads to execute at predetermined time intervals rather than continuously. The thread manager calculates optimal time intervals between thread wake-ups based on thread priorities and characteristics, allowing the processor to enter idle mode between scheduled executions while maintaining necessary thread responsiveness
Solution Approach 2:
The patent applies dynamics by making the thread scheduling interval adjustable and adaptive. The system dynamically determines time intervals between thread wake-ups based on real-time processor state, thread priorities, and system load conditions, optimizing the balance between responsiveness and power consumption
2Productivity
If processor wake-up frequency is increased to handle multiple threads, then thread processing capability is improved, but idle mode time decreases
Solution Approach 1:
The patent applies preliminary action by pre-calculating and scheduling thread execution times before actual execution. The thread manager determines optimal wake-up intervals in advance based on thread characteristics and system requirements, allowing the processor to remain in idle mode until the next scheduled thread execution time
Solution Approach 2:
The system implements periodic thread scheduling with predetermined intervals, creating regular patterns of processor activity and idle time. This periodic structure ensures that threads are executed at necessary frequencies while maximizing idle mode duration between executions
3Reliability
If threads are scheduled with dense execution periods, then thread execution completeness is improved, but processor release time decreases
Solution Approach 1:
The patent applies parameter changes by adjusting the time interval parameter between thread wake-ups based on thread priorities and system conditions. Higher priority threads receive shorter intervals to ensure execution completeness, while lower priority threads are scheduled with longer intervals to maximize processor release time
Data Source
AI summary
A method for managing threads and an electronic device using the method are provided. In the method, a current time is obtained. A time interval from now to a time for the processor to wake up next time is calculated. The processor is released until reaching the end of the time interval. When the end of the time interval is reached or a first notice signal of the processor is received, a first newest time is obtained to update a current time, and the current time is logged as a basis time. It is respectively checked whether the current time satisfies a plurality of predetermined time conditions of the registered threads against a plurality of registered threads in the threads. When the current time satisfies the predetermined time condition of a first registered thread among the registered threads, the first registered thread is waked up.


