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

Timer reading method, computing device and readable storage medium

A computing device and timer technology, applied in the computer field, can solve the problems of computer system performance degradation, loss of parallelism, etc., and achieve the effect of performance improvement and speed acceleration

Pending Publication Date: 2021-06-11
北京统信软件技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Obviously, based on the current method of reading the timer, the multiple cores of the CPU will lose parallelism, and thus the performance of the entire computer system will drop significantly.

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
  • Timer reading method, computing device and readable storage medium
  • Timer reading method, computing device and readable storage medium
  • Timer reading method, computing device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0024] figure 1 An overall architecture diagram 100 according to an embodiment of the present invention is shown. Such as figure 1 As shown, multiple cores of the CPU are connected with a high-precision external timer through a bus. It can be seen that all the cores of the CPU share this high-precision external timer through a bus. Therefore, when a certain core of the CPU needs to read the timer, it must first obtain the contro...

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 timer reading method, which is suitable for being executed in computing equipment. The computing equipment comprises a plurality of CPU cores, the plurality of CPU cores are connected with a timer, and the timer is associated with a spin lock. The method comprises the following steps that a first CPU core in the plurality of CPU cores performs locking processing on the spin lock based on a time reading request; when the locking processing is successful, the first CPU core reads the time data from the timer, writes the read time data into the time memory, releases the spin lock and returns the time data to the logic initiating the time reading request; and when the locking processing fails, the first CPU core enters a spin state, quits the spin state until the spin lock is released, and returns the time data stored in the time memory to the logic initiating the time reading request. According to the timer reading method, the performance of a computer system can be greatly improved. The invention further discloses a computing device and a readable storage medium.

Description

technical field [0001] The invention relates to the field of computers, in particular to a timer reading method, computing equipment and a readable storage medium. Background technique [0002] At present, multi-core CPUs are generally used in computers, and a multi-core CPU is to embed multiple cores on one CPU. These multiple cores usually share an external timer. In other words, the external timer is a shared resource for multiple cores of the CPU. The external timer mainly provides a clock source for the computer system, and the operating system uses this clock source to provide time for the file system, system clock, driver, network protocol stack, and various applications at the application layer. [0003] In the prior art, the cores of the CPU need to be exclusively used when using shared resources. Therefore, when one core of the CPU reads the timer, if other cores also need to read the timer at this time, then the rest of the cores need to wait in a queue. After...

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): G06F1/06G06F9/52
CPCG06F1/06G06F9/524
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