Method for using lock protocol under parallel task packet scheduling
A group scheduling and task technology, applied in resource allocation, program synchronization, program control design, etc., can solve the problem that the lock protocol method cannot be directly applied to parallel task scheduling, and the parallel task structure is complicated, so as to reduce deadlock, improve efficiency, The effect of reducing scheduling loss
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] The present invention proposes a method of using the lock protocol under parallel task group scheduling, such as figure 1 , figure 2 As shown, firstly, the P-FP scheduling of fixed priority group scheduling is adopted, and a fixed priority is set for all parallel tasks, and each subtask of the parallel task is fixedly assigned to a specific processor p k Go up, that is, set i processors p k , k=1, 2, 3, ..., i; and all subtasks of the parallel task are fixedly assigned to specific processors p k Go in; then in the case of using P-FP scheduling, the shared resource l q Divided into local resources and global resources; then set the resource ceiling priority Ω q , System ceiling priority Π k , according to shared resource l q Divide into the specific situation of local resources and global resources and combine resource ceiling priority Ω q , System ceiling priority Π k Perform priority sorting, the resource ceiling priority Ω q Shared resources for all access l ...
Embodiment 2
[0049] In this embodiment, on the basis of the above-mentioned embodiment 1, in order to better realize the present invention, a priority promotion flag is set for each subtask, and a certain parallelism is defined when using the lock protocol according to the priority. Task i resides on some processor p k A subtask x in when subtask Need to access a shared resource during the execution of q , if the shared resources that need to be accessed l q is a global resource, the subtask The priority increase flag bit is marked, so that the subtasks marked with the priority increase flag bit Subtasks at the same priority level that are not marked with the priority boost flag are processed first.
[0050] Furthermore, when the subtask Need to access a shared resource during the execution of q , if the accessed shared resource l q is a global resource and has been used by other subtasks locked, the subtask Block and join the resource blocking queue SQ q middle.
[0051...
Embodiment 3
[0055] In this embodiment, on the basis of any one of the above-mentioned embodiments 1-2, in order to better realize the present invention, further, when using the lock protocol according to the priority, it is defined that a certain parallel task i is located in a certain processor p k A subtask x in when subtask Need to access a shared resource during the execution of q , if the shared resources that need to be accessed l q is a local resource and has been used by other subtasks locked, the subtask Block and join the resource blocking queue SQ q middle.
[0056] Further, if other subtasks has a higher priority than subtasks If the priority is low, other subtasks will be temporarily promoted by priority inheritance The priority of the subtask The priority of , the specific calculation formula is:
[0057]
[0058] in for subtasks base priority, for subtasks The effective priority of the subtask Priority after priority inheritance.
[0059] Fur...
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