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

Method for testing multi-thread software concurrent conflict

A multi-threading and test line technology, applied in multi-programming devices, software testing/debugging, etc., can solve problems such as uncontrollable simultaneous calls of API interfaces, achieve the effect of improving concurrent testing efficiency and testing quality, and shortening the cycle

Inactive Publication Date: 2006-11-01
HUAWEI TECH CO LTD
View PDF0 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem to be solved by the present invention is that the prior art cannot control the simultaneous calling of the API interface

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 for testing multi-thread software concurrent conflict
  • Method for testing multi-thread software concurrent conflict
  • Method for testing multi-thread software concurrent conflict

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The test logic of the present invention will be described below by taking a test program that starts two test threads as an example.

[0040] figure 1 Shown is the test logic for two test threads applying the method described in the present invention. In the first test thread, the first API interface and the second API interface should be called, and in the second test thread, the third API interface and the fourth API interface should be called. Assuming that a concurrency conflict test needs to be performed on each API interface call, a synchronization application point is inserted before the above four calls to the API interface.

[0041] When each test thread executes to the synchronization application point, it will send a synchronization application to the test program. For example, after the test program accepts the synchronization application from the first test thread, it keeps the first test thread in a waiting state until it accepts the synchronization appl...

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

A method for testing collision of multilinear program software includes inserting synchronous application point before application program interface to be tested and to be called in test logic, operating at least two test linear programs and issuing synchronous application when test linear program is operated up to said point, judging whether said synchronous application is accepted or not and continuously issuing said synchronous application if it is not, continuously executing all test linear program to carry out collision test of test linear program if it is when the other test linear programs are at waiting-state.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a method for testing concurrency conflicts of multithreaded software. Background technique [0002] At present, a large number of application software adopt multi-thread technology, and such application programs can make better use of system resources. The main advantage of multi-threading technology is that it makes full use of the idle time slice of the CPU (Central Process Unit, central processing unit), and can use as little time as possible to respond to user requirements, so that the overall operating efficiency of the software is maximized. Improve, while enhancing the flexibility of the application software. [0003] However, multithreading technology also brings design and testing complexity while enhancing software functions. Since the realization of the API (Application Program Interface, application programming interface) function in the multi-threaded software reali...

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): G06F11/36G06F9/46
Inventor 韩霆军
Owner HUAWEI TECH CO LTD
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