Unlock instant, AI-driven research and patent intelligence for your innovation.

Resource monitoring method, device, equipment and medium

A resource monitoring and resource technology, applied in the field of resource management, can solve problems such as affecting resource reading, modification and release, inability to determine whether resources are held, inability to correctly restore resource reference counts, etc.

Active Publication Date: 2022-01-28
HUNDSUN TECH
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the case of abnormal termination of the process / thread, this reference counting scheme cannot determine whether the process / thread holds the resource before exiting, so the reference count of the resource cannot be restored correctly, which affects the reading, modification and release of the resource

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
  • Resource monitoring method, device, equipment and medium
  • Resource monitoring method, device, equipment and medium
  • Resource monitoring method, device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0048]The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such tha...

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 present application discloses a resource monitoring method, which includes: when a first applicant applies for a resource, create a data node to record the identity of the first applicant, and save the data node to the data structure corresponding to the resource middle; when the second applicant invokes the resource and terminates abnormally, check whether the second applicant’s identity exists in the data structure corresponding to the resource, if there is still the second applicant’s identity in the data structure, correspondingly from Delete the data node corresponding to the second applicant in the data structure; in this way, in the case of an abnormal termination of the resource call by the applicant, the applicant can be determined by judging whether the data node corresponding to the resource has the data node of the applicant’s identity. Whether to hold the resource before abnormal exit, so as to ensure that the number of data nodes in the data structure can accurately represent the reference count of the resource.

Description

technical field [0001] The present application relates to the technical field of resource management, and in particular to a resource monitoring method, device, equipment and medium. Background technique [0002] Reference counting is a memory management technology in computer programming languages. It records the number of times a resource (which can be an object, memory or disk space, etc.) is referenced. The reference count corresponding to the resource can be added or subtracted. It can be freed when the corresponding reference count becomes zero. [0003] Multi-process / thread applications usually use reference counting to manage shared resources. When applying for a shared resource, add one to the reference count, and decrement the reference count by one after returning the applied for shared resource. When the resource reference count is not zero, the resource cannot be modified, nor can it be destroyed. [0004] At present, integer atomic variables are usually used...

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 Patents(China)
IPC IPC(8): G06F9/50G06F9/52
CPCG06F9/5016G06F9/5022G06F9/524G06F2209/5018G06F2209/508
Inventor 柳正龙何仲君
Owner HUNDSUN TECH