Unlock instant, AI-driven research and patent intelligence for your innovation.

Thread processing method and device

A processing method and processing device technology, applied in the computer field, can solve problems affecting thread processing efficiency, slow acquisition speed, etc., and achieve the effect of improving acquisition efficiency and improving efficiency

Active Publication Date: 2017-03-29
LOONGSON TECH CORP
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When using the existing technology to obtain the first address of the control structure of the thread, it is found that in the above scheme, each time the first address of the control structure of the thread is obtained, it needs to call and return through the function, resulting in a slow acquisition speed and affecting the processing efficiency of the thread

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
  • Thread processing method and device
  • Thread processing method and device
  • Thread processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] figure 1 It is a flow chart of Embodiment 1 of the thread processing method of the present invention. Such as figure 1 As shown, the execution subject of this embodiment is a processing device that is a thread, and the processing device can be implemented in the form of software and / or hardware. Preferably, the processing device can be integrated into a processor in a computer device. Specifically, the Treatment methods include:

[0030] S101. Access the first register to obtain the first address of the control structure corresponding to the current thread cached in the first register.

[0031] In a computer system, there are multiple registers. For example, in the processor architecture (Microprocessor without interlocked piped stages architecture, referred to as MIPS architecture) that adopts a simplified instruction set, there are various registers, such as special registers (R0, SP, FP, etc.) , temporary registers (T0-T9), and storage registers (S0-S7), etc.

[...

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 method and device for processing a thread. The method comprises the steps that a first register is accessed to obtain the initial address of a control structure corresponding to the current threading cached in the first register; the current threading is controlled to utilize the control structure corresponding to the current threading according to the initial address of the control structure corresponding to the current threading. Through the method and device for processing the thread, the first register can be directly accessed to obtain the initial address of the control structure, multiple functions do not need to be called and returned, the obtaining efficiency of the initial address of the control structure of the thread is improved, and therefore the efficiency for processing the thread by a computer system is improved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a thread processing method and device. Background technique [0002] A computer system performs various functions by running various threads. Commonly, taking the Java (the general name of the Java object-oriented programming language and the Java platform launched by Sun Microsystems in May 1995) virtual machine as an example, each Java thread has an independent control structure. The control structure is a storage space located in the memory of the Java virtual machine, which stores some global information during the running of the Java thread, such as the current thread status, exception information, virtual machine running results, stack status, etc. Multiple functions within the same thread can share the control structure of the thread, and each function in the thread uses the control structure according to the first address of the control structure. [0003] In the prio...

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/30G06F9/32
Inventor 蔡嵩松张戈刘奇
Owner LOONGSON TECH CORP