Interface function positioning method, device and network device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NEW H3C TECH CO LTD
- Publication Date
- 2022-07-01
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
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 ...