Interface function positioning method, device and network device

A technology of interface function and network equipment, which is applied in the field of communication, can solve the problem of low efficiency of interface function and achieve the effect of improving positioning efficiency

Active Publication Date: 2022-07-01
NEW H3C TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the present invention proposes an interface function positioning method, device and network equipment in order to solve the existing semaphore deadlock positioning problem and the low efficiency of the interface function, so as to quickly locate the semaphore deadlock. to the question interface function

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
  • Interface function positioning method, device and network device
  • Interface function positioning method, device and network device
  • Interface function positioning method, device and network device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numerals in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with embodiments of the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of embodiments of the invention as recited in the appended claims.

[0056]The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the contex...

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 present invention provides an interface function positioning method, device and network equipment. The network device runs multiple threads, the first thread in the multiple threads obtains the semaphore used to access the data through the interface function, and accesses the data through the semaphore, and the second thread to access the data needs to wait for the semaphore to be released. , obtain the semaphore and access the data, the network device allocates a corresponding signal stack for each thread, the signal stack is used to store the semaphore acquired by the thread, the method includes: judging whether the top semaphore of the signal stack corresponding to the first thread is not Deadlock; if the semaphore at the top of the stack is deadlocked, find the interface function corresponding to the semaphore at the top of the stack from the correspondence between the locally recorded semaphore and the interface function; determine the interface function corresponding to the semaphore at the top of the stack as the problem interface function. Through the present invention, the problem interface function can be quickly located.

Description

technical field [0001] The present invention relates to the field of communication technologies, and in particular, to a method, device and network device for locating an interface function. Background technique [0002] Network devices generally support multithreading. An access violation occurs when multiple threads access the same data at the same time. In order to avoid conflicts, a semaphore mechanism is usually introduced. [0003] The thread obtains the semaphore through the interface function, and accesses the data through the obtained semaphore. At the same time, only one thread is allowed to acquire the semaphore and access the data, and other threads must wait until the semaphore is released before they can acquire the semaphore and access the data. [0004] If the thread that acquired the semaphore misses releasing the semaphore, other threads will continue to wait and cannot continue to execute. Or, multiple threads request each other for the semaphore that ...

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/52G06F9/54
CPCG06F9/524G06F9/546
Inventor 杨亚伟
Owner NEW H3C TECH CO LTD
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