Method and system for dynamically adjusting global heap allocation in multi-thread environment

An allocation method and dynamic adjustment technology, applied in the field of global heap allocation, can solve problems such as waste of memory resources, lock competition, and a large number of memory fragments, so as to improve efficiency, resource utilization, and reduce lock competition

Active Publication Date: 2017-12-05
INT BUSINESS MASCH CORP
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This technical solution can indeed alleviate the lock competition to some extent, but each sub-heap is still allocated multiple threads, and there is still the problem of lock competition
More importantly, when dividing sub-heaps and allocating threads, it is impossible to know which threads should be allocated to which sub-heaps to achieve the best performance at runtime, so often the sub-heap Heap1 is idle, while The sub-heap Heap2 is already in a state of lock competition, resulting in waste of memory resources and a large amount of memory fragmentation

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
  • Method and system for dynamically adjusting global heap allocation in multi-thread environment
  • Method and system for dynamically adjusting global heap allocation in multi-thread environment
  • Method and system for dynamically adjusting global heap allocation in multi-thread environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] Hereinafter, the method and system provided by the present invention will be described in detail through embodiments with reference to the drawings.

[0018] Those skilled in the art know that various aspects of the present invention can be embodied as a system, a method or a computer program product. Therefore, various aspects of the present invention can be embodied in the following forms, that is, can be complete hardware, complete software (including firmware, resident software, microcode, etc.), or generally referred to herein as "circuits" and "modules". "Or the combination of the software part and the hardware part of the "system". In addition, various aspects of the present invention may also take the form of a computer program product embodied in one or more computer-readable media, and the computer-readable media contains computer-usable program codes.

[0019] Any combination of one or more computer-readable media can be used. The computer-readable medium may be...

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 relates to a global heap allocation technology in a multi-thread environment, in particular to a method and system for dynamically adjusting global heap allocation in a multi-thread environment. More specifically, the present invention relates to a method and system for dynamically adjusting global heap allocation by monitoring conflicting parameters of the global heap allocation method. The present invention provides a method for dynamically adjusting global heap allocation in a multi-thread environment, comprising: identifying the global heap allocation method in an application program; judging whether the global heap allocation method is a hotspot of multi-thread conflict; and responding If the judgment result is yes, the memory space requested by the global heap allocation method is allocated by using the local stack. According to the method, the inherent global heap allocation method in the program can be dynamically adjusted according to the real-time running state, reducing the lock competition generated on the global heap, and effectively improving the efficiency of resource allocation and resource utilization.

Description

Technical field [0001] The invention relates to a global heap allocation technology in a multithreaded environment. More specifically, the present invention particularly relates to a method and system for dynamically adjusting global heap allocation by monitoring conflicting parameters of the global heap allocation method. Background technique [0002] At present, with the development of computer multi-core technology, multi-threaded programs have been more and more widely used. There are two major problems in a multi-threaded environment. One is resource sharing, that is, multiple threads share the same physical memory. The second is resource synchronization, that is, the multi-threaded environment requires that the physical memory of the same entity be accessed by only one thread at the same time. This shows that resource sharing and resource synchronization are conflicting requirements between each other. Under the premise of ensuring resource sharing, when multiple threads...

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/50
CPCG06F9/5016G06F12/02G06F12/023G06F12/0284
Inventor 韩瑞波罗志达戴晓君刘伟
Owner INT BUSINESS MASCH CORP
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