Supercharge Your Innovation With Domain-Expert AI Agents!

Multi-thread processing method and device based on web front-end technology and storage medium

A processing method and multi-threading technology, applied in the field of web front-end, can solve the problems such as the poor ability of browser scripting language to manipulate files and the difficulty of using multi-threading technology.

Pending Publication Date: 2020-09-25
GENEW TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem to be solved by the present invention is that, aiming at the above-mentioned defects of the prior art, a multi-thread processing method, device and storage medium based on web front-end technology are provided, aiming at solving the problems that must be solved in the multi-thread processing in the prior art Create a new worker.js file in the same directory as the webworker script file for initialization calls, but the ability of the browser script language to manipulate files is poor, and multi-threading technology is difficult to use

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
  • Multi-thread processing method and device based on web front-end technology and storage medium
  • Multi-thread processing method and device based on web front-end technology and storage medium
  • Multi-thread processing method and device based on web front-end technology and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the object, technical solution and advantages of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0044] When the user needs to process a huge amount of data in a usage scenario, it is necessary to use a multi-threaded program to help the main program (that is, the main thread program) to perform calculations. For example, if the user needs to draw 66,000 polygons (polygons with heights) and calculate their buffers (coordinates of new polygons formed after the polygons are scaled to a certain distance), draw new polygons according to the buffer coordinates Body, such as figure 2 As shown, the inner polygon is the original polygon, and the outer polygon is the newly drawn polygon ob...

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 multi-thread processing method and device based on a web front-end technology and a storage medium. The method comprises the steps: enabling a main program of a to-be-processed scene to receive a user writing instruction, and obtaining a calculation function corresponding to the to-be-processed scene; receiving a user operation instruction, starting a preset starting function, and calling a multi-thread program according to the calculation function and the starting function; and the main program sends the original data corresponding to the scene to be processed to a multi-thread program, and the multi-thread program processes the original data to obtain result data and sends the result data to the main program. According to the invention, writing of a calculation function and calling of a multi-thread program are completed in a main program of a to-be-processed scene; according to the method and the device, a worker. Js file does not need to be newly built forinitialization calling under the same-level directory of the webworker script file, so that the browser script language is prevented from operating the file, and a user can smoothly utilize a multi-thread technology.

Description

technical field [0001] The present invention relates to the technical field of web front-end technology, in particular to a multi-thread processing method, device and storage medium based on web front-end technology. Background technique [0002] In the field of web front-end technology, various systems have always been run in a single-threaded manner. Single-threaded is also called the main thread. In the field of web front-end, single-threaded means that all calculation logic must be queued. A method is computed by a processor and returns the result. The single thread needs to complete most of the daily tasks of system operation according to the queue of the event loop, such as dom analysis (the main structure of the web page) and rendering, interpretation and execution of scripting language, drawing graphics, etc. [0003] With the advancement of web front-end technology and the introduction of a new generation of html5 standards, the concept of webworker (web-side multi...

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/50G06F9/455
CPCG06F9/5027G06F9/45529G06F2209/5018
Inventor 郭博阳吴闽华姜坤卫宣安
Owner GENEW TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More