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

A method and an apparatus for detecting a reason of a semaphore timeout

A technology for detecting signals and semaphores, applied in the field of detection, which can solve problems such as low task access efficiency

Active Publication Date: 2019-01-11
NEW H3C TECH CO LTD
View PDF10 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the purpose of this application is to provide a method and device for detecting the cause of semaphore timeout, which is used to solve the problem of low task access efficiency caused by semaphore timeout in the prior art

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
  • A method and an apparatus for detecting a reason of a semaphore timeout
  • A method and an apparatus for detecting a reason of a semaphore timeout
  • A method and an apparatus for detecting a reason of a semaphore timeout

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050]In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of them. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without ...

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 and an apparatus for detecting a reason of a semaphore timeout are provided. The method includes recording each semaphore and a task for successfully passing the semaphore and a timestamp forsuccessfully passing the semaphore; recording the semaphore of each task and the current application for the task; acquiring a timeout semaphore having a timestamp to a current time exceeding a preset timeout threshold from the recorded semaphore; according to the timeout semaphore, the recorded task of successful operation of the semaphore and the semaphore currently applied by the task, obtaining the reason of the timeout of the semaphore. The invention can effectively improve the efficiency of task access.

Description

technical field [0001] The present application relates to the technical field of detection, and in particular, to a method and device for detecting the cause of a semaphore timeout. Background technique [0002] In the computer operating system of network devices, in many cases, it is necessary to ensure that tasks can independently access resources such as shared resources or critical areas, so as to avoid potential technical problems caused by conflicts and uncertain interactions between tasks. But at the same time, there may be multiple tasks accessing these resources at the same time in the computer operating system. In order to realize the exclusive access of a certain task to this resource, a semaphore (Semaphore) can be introduced to provide mutually exclusive access, so that in any At any time, only one task can occupy the semaphore used to represent the shared resource or critical area, so that only one task can access a shared resource or critical area at the same ...

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 Applications(China)
IPC IPC(8): G06F9/52
CPCG06F9/524
Inventor 王明辉李洪富
Owner NEW H3C 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