Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Dynamic resource recovery method and system

A resource recovery and dynamic technology, applied in the computer field, can solve problems such as resources cannot be deleted, wasted, and other resources cannot own the resources, so as to avoid access risks and reduce resource conflicts

Pending Publication Date: 2015-11-11
OPZOON TECH
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] However, in a multi-threaded program under the Linux system, there is a competitive relationship between various resources. When a thread occupies a certain resource, other resources cannot own the resource. If you want to own it, you usually have to wait for the resource to be released.
When a thread in the system needs to delete certain resources, the resource may be being used by other threads, resulting in that the resource cannot be deleted, and the thread has been waiting for the resource to be released, which actually causes waste

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
  • Dynamic resource recovery method and system
  • Dynamic resource recovery method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0046] Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and / or groups thereof.

[0047] Those sk...

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 invention provides a dynamic resource recovery method and system. The method comprises: creating an active chain table and an inactive chain table of shared resources; creating a resource recovery thread and registering a deletion interface of the shared resources to the resource recovery thread; when deleting the shared resources by a thread, moving the shared resources to the inactive chain table from the active chain table, and sending a notification message to the resource recovery thread; and after receiving the notification message by the resource recovery thread, deleting the shared resources in the inactive chain table through the resource recovery thread. According to the method and the system, the resource conflict can be reduced as far as possible and the access risk of other threads caused by false deletion of the resources by certain thread is avoided.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and system for dynamically reclaiming resources. Background technique [0002] Multithreading is a very "thrifty" way of multitasking. Under the Linux system, starting a new process must assign it an independent address space, and establish numerous data tables to maintain its code segment, stack segment and data segment, which is an "expensive" multitasking way of working. However, multiple threads running in one process use the same address space with each other and share most of the resources. It takes much less space to start one thread than to start one process, and the threads switch between each other. The time required is also much less than the time required to switch between processes. Moreover, since the data space is shared between threads under the same process, the data of one thread can be directly used by other threads, which is not only fast but also...

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/48G06F9/50
Inventor 李鹏
Owner OPZOON TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products