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

Method and device for transmitting information between father and son threads, equipment and medium

A technology of information transmission and sub-threads, which is applied in the computer field, can solve the problems of reducing system concurrency performance, product competitiveness, business disorder, and inability to use threads, etc., to achieve information transmission and synchronization, improve product competitiveness, and improve concurrency performance Effect

Pending Publication Date: 2022-05-31
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] For training tasks in AI (Artificial Intelligence, artificial intelligence) scenarios, due to the large amount of business concurrency, threads need to be used to process business in microservices. However, threads (such as parent threads and child threads) will appear when multi-threading is used. The problem of how to synchronize and transfer variables between them, sometimes the child thread will not be able to obtain the parameters of the parent thread, causing the business to not be executed correctly, leading to business confusion, and bringing a very bad experience to users
At present, in order to avoid such problems, some products adopt the strategy of not using threads, but in this way, the advantages of threads cannot be used, which reduces the concurrent performance of the system and the competitiveness of products

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
  • Method and device for transmitting information between father and son threads, equipment and medium
  • Method and device for transmitting information between father and son threads, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Embodiments of the present invention provide a method, device, device, and computer-readable storage medium for information transmission between parent and child threads, which can realize information transmission and synchronization between parent threads and child threads during use, which is conducive to improving the system Concurrency performance and product competitiveness.

[0038] 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 making creative efforts belong to t...

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 invention provides an information transmission method and device between father and son threads, equipment and a computer readable storage medium. The method comprises the steps that a preset variable is defined in a service layer in advance; receiving a service request sent by a service layer through the main thread; correspondingly writing a parameter corresponding to the service request and a main thread identifier into a preset variable; acquiring a parameter corresponding to the main thread identifier from the preset variable through the sub-thread, and calling a corresponding business service based on the parameter to perform business processing; in the using process, information transmission and synchronization between the parent thread and the child thread can be achieved, the efficiency is high, the safety is high, and the concurrency performance of a system and the competitiveness of a product can be improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an information transmission method, device, equipment and computer-readable storage medium between parent and child threads. Background technique [0002] For training tasks in AI (Artificial Intelligence, artificial intelligence) scenarios, due to the large amount of business concurrency, threads need to be used to process business in microservices. However, threads (such as parent threads and child threads) will appear when multi-threading is used. The problem of how to synchronize and transfer variables between variables, sometimes the child thread will not be able to obtain the parameters of the parent thread, causing the business to not be executed correctly, leading to business confusion, and bringing a very bad experience to users. At present, in order to avoid such problems, some products adopt the strategy of not using threads, but in this way, the advantages o...

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
IPC IPC(8): G06F9/54G06F9/52
CPCG06F9/546G06F9/52
Inventor 徐如庆
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
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