Method and apparatus of thread scheduling
A scheduling method and thread technology, applied in the computer field, can solve the problem of reducing system efficiency, unbalanced pressure distribution, and not scheduling these threads that have been bound to a fixed processor to other processors that issue scheduling requests. Implementation and other issues to improve system efficiency, avoid uneven distribution of system pressure, and reduce contention
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] This embodiment describes the process of thread scheduling by using threads as scheduling units and binding interrelated threads to thread clusters (also referred to as thread sets, the same below).
[0035] see figure 1 , is a schematic diagram of a thread scheduling process in Embodiment 1 of the present invention, and the specific steps include:
[0036] Step 101. When a certain processor sends out a scheduling request because it is currently idle, the thread scheduler receives the scheduling request from the processor, and selects a thread from the thread queue to be executed according to the thread scheduling rule. Threads in the ready state are arranged in the thread queue to be executed. The thread scheduling rules can be scheduled according to the scheduling mode or thread priority. For example, a thread scheduler selects a thread with the highest priority from a queue of threads to be executed.
[0037] Step 102, the scheduler obtains information about threa...
Embodiment 2
[0070] This embodiment describes the process of binding interrelated threads to thread clusters and performing thread scheduling with the thread cluster as a scheduling unit.
[0071] First, create and set thread clusters in the same manner as in Embodiment 1. When there is no association between threads, these independent threads can be set as thread clusters independently, so that all threads are bound to the corresponding thread clusters middle. Threads in a thread cluster maintain their individual attributes.
[0072] Thread clusters also have attributes such as priority. The attributes of a thread cluster are the attributes of the thread with the highest priority in the ready state in the thread cluster. The scheduler can schedule thread clusters according to attributes such as the priority of the thread clusters. For example, thread clusters with high priority are scheduled first, which ensures that threads with high priority are executed first.
[0073] Thread cluste...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com