Multi-core task scheduling method and device, electronic equipment and storage medium
A scheduling method and task technology, applied in the direction of multi-program device, program control design, electrical digital data processing, etc., can solve the problem of multi-core processing performance degradation, etc., to achieve the effect of reducing redundant scheduling and avoiding preemption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 It is a schematic flowchart of the method for multi-core scheduling of tasks provided in Embodiment 1 of the present application. This embodiment is applicable to the scenario of multi-core scheduling of tasks. The method can be performed by a task multi-core scheduling device, which can be implemented in the form of hardware and / or software, and generally can be integrated in electronic equipment such as computers with data computing capabilities, specifically comprising the following steps:
[0026] Step 101, filter out the target running tasks with the lowest priority in the running task queue and whose running CPU core does not have the second-priority preemption attribute; wherein, the second-priority preemption attribute is used to indicate that the CPU core has an affinity attribute with the CPU core Global tasks.
[0027] It should be noted that before this step, the scheduler will initiate scheduling. In order to ensure that the method of this embodim...
Embodiment 2
[0051] image 3 It is a schematic structural diagram of a task multi-core scheduling device provided in Embodiment 2 of the present application. The task multi-core scheduling device provided in the embodiment of the present application can execute the task multi-core scheduling method provided in any embodiment of the present application, and has corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as image 3 As shown, the task multi-core scheduling device specifically includes: a target running task determination module 301 , a preemption right determination module 302 , and a candidate task preemption module 303 .
[0052] Among them, the target running task determination module is used to filter out the target running tasks with the lowest priority in the running task queue and the running CPU core does not have the second-priority preemption attribute; wherein, the second-priorit...
Embodiment 3
[0078] Figure 4 A schematic structural diagram of an electronic device provided in Embodiment 3 of the present application, such as Figure 4 As shown, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of processors 410 in the electronic device may be one or more, Figure 4 Take a processor 410 as an example; the processor 410, memory 420, input device 430 and output device 440 in the electronic device can be connected by bus or other methods, Figure 4 Take connection via bus as an example.
[0079] The memory 420, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as program instructions / modules corresponding to the multi-core scheduling method for tasks in the embodiment of the present invention (for example, a multi-core scheduling device for tasks Scheduling prohibition module 401, task preemption module 402, task switching mo...
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