Synchronous optimization method and synchronous optimization equipment

An optimization method and asynchronous technology, applied in the computer field, can solve problems such as the increase of code area range and the decrease of program concurrency, and achieve the effect of high flexibility and good scalability

Inactive Publication Date: 2010-01-20
UNIV OF SCI & TECH OF CHINA
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The lock coarsening technology merges some multiple synchronization operations that act on the same synchronization object. After the merger, the range of the code area to be synchronized will increase, which will cause a decrease in program concurrency in a multi-threaded environment, especially in When the number of threads is very large, the impact on concurrency will be more obvious

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
  • Synchronous optimization method and synchronous optimization equipment
  • Synchronous optimization method and synchronous optimization equipment
  • Synchronous optimization method and synchronous optimization equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Embodiments of the invention are described in detail below, examples of which are illustrated in the accompanying drawings. 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.

[0026] While the synchronization optimization improves the synchronization overhead of the application program, it also consumes a large program analysis overhead. In order to balance the cost and benefit of synchronous optimization between processes, the present invention optimizes the calling point of the synchronous method, because: 1) in the actual code, the synchronous overhead spent by the synchronous method call accounts for a large proportion in the total synchronous overhead; 2) The analysis of the calling point of the synchronization method is relatively simple.

[0027] As an embodiment of the present invention, the synchronization object of a static synchron...

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 synchronous optimization method and synchronous optimization equipment. The method comprises the following steps: carrying out static program analysis on a compiled method, confirming a synchronous method calling point without carrying out synchronous operation on a synchronous object in the compiled method according to an analysis result and marking the synchronous method calling point; compiling the called synchronous method according to the marked synchronous method calling point to generate a local code allowing to execute the synchronous operation on the synchronous object of the synchronous method; and executing the local code according to the marked synchronous method. The synchronous optimization method and the synchronous optimization equipment have high flexibility and favorable expandability.

Description

technical field [0001] The present invention relates to computer technology, and more particularly to synchronization optimization technology. Background technique [0002] Java is a programming language that supports multi-threaded programming at the language level. It provides synchronization methods and synchronization statements based on the monitor mechanism for synchronization between threads. Each object in Java has a corresponding monitor. Threads can lock / unlock an object through synchronous method calls and synchronous statements. Only one thread can hold the lock on a certain monitor at a time. Others try to monitor this Threads that lock the monitor will be blocked until they acquire the lock on the monitor. [0003] In order to ensure multi-thread safety, many classes in the Java standard library must be designed to be thread-safe, that is, synchronization operations need to be added when accessing shared data, such as java.util.Vector class, java.util.Hashtabl...

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
IPC IPC(8): G06F9/45
Inventor 张昱史成荣
Owner UNIV OF SCI & TECH OF CHINA
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