Shared resource access method and device

A technology for shared resources and access methods, applied in the field of shared resource access methods and devices, can solve problems such as blocking of high-priority tasks, minimize priority inversion and avoid deadlocks

Pending Publication Date: 2020-08-07
CHINA VAGON AUTOMOTIVES HLDG CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, in the previous example, a high-priority task was waiting to access a shared resource that was being used by a low-priority task, but the low-priority task was repeatedly occupied by other tasks with higher priority while occupying the shared resource. Preemption, so that the blocking suffered by high-priority tasks may be infinite

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Shared resource access method and device
  • Shared resource access method and device
  • Shared resource access method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0023] Before describing in detail the method for accessing shared resources provided by the embodiment of the present invention, firstly, a unified description will be given of related concepts involved in the embodiment of the present invention.

[0024] Interrupt Service Routine (Interrupt Service Routine, ISR): The interrupt service routine is...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a shared resource access method and device, and the method comprises the steps: setting the upper limit priority of a shared resource to be higher than or equal to the highest priority of a resource use unit for accessing the shared resource, wherein the resource use unit comprises a task and/or interruption; when a certain resource using unit calls the shared resources, adjusting the priority of the resource using unit to the upper limit priority, then obtaining the shared resources through a resource obtaining statement, and releasing the shared resources through a resource releasing statement. According to the shared resource access method and device, theupper limit priority of the shared resources is set to be higher than or equal to the highestpriority of the resource use units accessing the shared resources, and when a certain resource use unit calls the shared resources, the priority of the resource use units is adjusted to the upper limit priority, so that the priority inversion minimization is realized, and the deadlock phenomenon is avoided.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for accessing shared resources. Background technique [0002] In a computer system, some computer resources, such as hardware or memory, can be accessed concurrently by multiple tasks and / or ISRs (Interrupt Service Routines, Interrupt Service Routines) with different priorities. Such computer resources are called shared resources. [0003] Access to shared resources is often considered unreliable and insecure, and typical problems related to shared resource access include priority inversion (Priority Inversion) and deadlock (Deadlock) problems. [0004] The so-called priority inversion (also called priority inversion) means that a high-priority task is blocked by a low-priority task, so that the relative priorities of the two tasks are inverted. For example, a high-priority task is waiting to access a shared resource that is being used by a low-pri...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F9/52G06F9/50
CPCG06F9/544G06F9/5038G06F9/5022G06F9/5016G06F9/5011G06F9/524G06F2209/5021
Inventor 李朝晖梁智敏李沐泽戴日成齐伟广何文鑫高志远罗会标
Owner CHINA VAGON AUTOMOTIVES HLDG CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products