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

User mode timer implementation method based on semaphore mechanism

An implementation method and timer technology, applied in the direction of instruments, program control design, resource allocation, etc.

Pending Publication Date: 2020-11-24
上海睿赛德电子科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to provide a user state timer implementation method based on a semaphore mechanism to solve the problem of safely implementing timer callback in the user state with low resource occupation.

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
  • User mode timer implementation method based on semaphore mechanism
  • User mode timer implementation method based on semaphore mechanism
  • User mode timer implementation method based on semaphore mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all of them. The embodiments are provided in order to disclose the present invention thoroughly and completely, and to fully convey the scope of the present invention to those skilled in the art. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all premise embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0020] The embodiment of the present invention provides a descriptio...

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 provides a user mode timer implementation method based on semaphore mechanism. The method is used for solving the problem of overtime callback of a timer of a user mode application program. A kernel timer management unit, the semaphore mechanism and the user mode timer management unit are included. By adopting the semaphore mechanism-based user mode timer implementation method provided by the invention, the kernel timer can call the timeout callback function set by the user mode in the user mode after the timing time is up, so that the user mode callback function is prevented from being directly called in the kernel mode, and the security of the kernel mode is protected.

Description

technical field [0001] The present disclosure relates to the embedded field and the field of real-time operating system, and in particular relates to a method for implementing a user state timer based on a semaphore mechanism. Background technique [0002] On the traditional embedded real-time operating system, the operating system kernel and the application program run at the same privilege level, and any design flaw in any part of the application program will endanger the stability of the entire system. Therefore, there is an embedded real-time operating system in which the application program is separated from the kernel. On this operating system, the design defects of the user-mode application program will not affect the kernel, and the stability of the operating system can be effectively guaranteed. [0003] On the traditional embedded real-time operating system, the timeout callback function of the timer is called by the operating system kernel after the timeout time i...

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/50
CPCG06F9/5011
Inventor 张俊郭占鑫邵进春
Owner 上海睿赛德电子科技有限公司
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