Timing method and device for semaphore waiting interface

A semaphore and interface technology, applied in the computer field, can solve the problem of low timing accuracy of semaphore waiting interface, and achieve the effect of improving accuracy

Active Publication Date: 2017-02-08
苏州医疗器械产业发展集团有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The present invention provides a timing method and device for a semaphore waiting interface to solve the problem in the prior art that the timing accuracy of the semaphore waiting interface is low due to the limitation of the accuracy of the operating system clock itself

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
  • Timing method and device for semaphore waiting interface
  • Timing method and device for semaphore waiting interface
  • Timing method and device for semaphore waiting interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to solve the problem of low timing accuracy of the semaphore waiting interface in the prior art due to the limitation of the precision of the operating system clock itself, without affecting the overall performance of the system, the present invention provides a timing method and device for the semaphore waiting interface , especially suitable for applications with very high timing requirements such as LTE systems. The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0030] method embodiment

[0031] According to an embodiment of the present invention, a semaphore wait interface timing method is provided, figure 2 It is a flow chart of the semaphore waiting interface timing method in the embodiment of the present invention, as figu...

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 invention discloses a semaphore waiting interface timing method and device. The method includes: step 1, when a predetermined task calls the semaphore waiting interface, enabling the hardware timer, setting the timing time of the hardware timer and the parameters of the semaphore waiting interface; step 2, obtaining the semaphore waiting interface through the semaphore waiting interface The semaphore, according to the value of the semaphore, judge whether the semaphore is a normal semaphore obtained before the timing time expires or an interrupt semaphore obtained after the hardware timer is interrupted; step 3, after judging that the obtained semaphore is a normal semaphore In this case, turn off the hardware timer, perform task processing according to the normal semaphore, and perform step 1. If the acquired semaphore is judged to be an interrupt semaphore, directly perform step 1. By means of the technical scheme of the invention, the timing accuracy of the semaphore waiting interface is improved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a timing method and device for a semaphore waiting interface. Background technique [0002] The semaphore wait (pend) interface provided by the real-time operating system is an important strategy to realize the synchronous execution of multiple tasks. In the prior art, generally the interface has a time parameter, which indicates the length of time the interface waits for the semaphore, that is, if the semaphore does not arrive within the time length set by the time parameter, the interface will return a The return value of waiting for the semaphore to time out, wherein the behavior of judging whether to wait for the semaphore to time out needs to rely on the clock management system of the operating system itself. [0003] The current embedded operating system uses a fixed time slice method to maintain the clock of the operating system itself, and uses the hardware timer cycle on the ce...

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/40
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