A processing method and device for monitoring semaphore based on Shenwei architecture

A technology for monitoring signals and processing methods, which is applied in the field of monitoring semaphore processing, and can solve problems such as inability to locate and debug through commands, no response to debugging commands, and hang up of user command input interface.

Active Publication Date: 2021-07-13
北京中科网威信息技术有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The disadvantage of the above-mentioned prior art method is: after the command issuing process has issued the command character string, the P operation of the semaphore is blocked, and no longer responds to the command character string input by the user, and waits for the command execution process to complete the semaphore V operation. In order to continue to run and respond to user input, however, once the command execution process has an abnormal state, such as: hanging or infinite loop, etc., making the command execution process unable to perform the V operation of the semaphore normally, in this case the command issuing process will always Blocking, so that the command string input by the user can no longer be read, and the command string entered before cannot be returned normally. The performance is that the user command input interface hangs up, and any debugging command does not get a response, making it impossible to enter the hidden background. The method is used to locate and debug the command execution process

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 processing method and device for monitoring semaphore based on Shenwei architecture
  • A processing method and device for monitoring semaphore based on Shenwei architecture
  • A processing method and device for monitoring semaphore based on Shenwei architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0033] figure 1 It is a schematic flow chart of the processing method of monitoring semaphore based on Shenwei architecture in the embodiment of the present invention, as shown in figure 1 As shown, the embodiment of the present invention provides a method for processing monitoring semaphore based on Shenwei architecture, including the following ...

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 embodiment of the present invention provides a processing method and device for monitoring semaphore based on the Shenwei architecture. The method includes: if it is detected that the P operation of the semaphore in the command issuing process continues to be blocked within the preset duration, then The monitoring thread starts timing; wherein, the monitoring thread is used to periodically monitor the command execution flag bit in the order issuing process; if it is judged that the command in several consecutive monitoring cycles after the opening moment of the timing If the execution flag bits are all valid, it is determined that the command execution process is in an abnormal state; the monitoring thread is made to perform the V operation of the semaphore until the blocking state is lifted. The apparatus performs the method described above. The method and device provided by the embodiments of the present invention can effectively monitor the semaphore, so that the P operation of the semaphore caused by the abnormal state of the command execution process can be released from the blocked state.

Description

technical field [0001] The embodiment of the present invention relates to the technical field of signal monitoring, and in particular to a method and device for processing monitoring semaphore based on Shenwei architecture. Background technique [0002] In computer operating systems, PV operations on semaphores are commonly used to implement process management. [0003] The following is a brief introduction to the principle of PV operation: PV operation is composed of P operation primitive and V operation primitive (the primitive is an uninterruptible process), and the operation on the semaphore is as follows: P(S): ① Set The value of the semaphore S is reduced by 1, that is, S=S-1; ②If S≥0, the process continues to execute; otherwise, the process is placed in a waiting state and placed in a waiting queue. V(S): ①Add 1 to the value of the semaphore S, that is, S=S+1; ②If S>0, the process continues to execute; otherwise, release the first process waiting for the semaphore...

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): G06F11/07
CPCG06F11/0751G06F11/0793
Inventor 高福亮
Owner 北京中科网威信息技术有限公司
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