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

A method and device for concurrently acquiring resources

A technology for obtaining resources and resources, applied in the computer field, can solve problems such as poor scalability, low efficiency, and poor unified control and management, and achieve the effects of increasing development efficiency, reducing resource overhead, and having good horizontal scalability.

Active Publication Date: 2021-02-26
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The dependence on the thread pool cannot well meet the business needs, the scalability is poor, the resources are not reused and the efficiency is low, the coding quality is uncontrollable, and it is not easy to control and manage uniformly

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
  • A method and device for concurrently acquiring resources
  • A method and device for concurrently acquiring resources
  • A method and device for concurrently acquiring resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0035] figure 1 is a schematic diagram of main steps of a method for concurrently acquiring resources according to an embodiment of the present invention.

[0036] Such as figure 1As shown, the method for concurrently acquiring resources in the embodiment of the present invention mainly includes the following steps S101 to S103.

[0037] Step S101: Receive multiple reso...

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 method and a device for acquiring resources concurrently, and relates to the technical field of computers. A specific implementation of the method includes: receiving multiple resource acquisition tasks from a user, each resource acquisition task is used to acquire a resource on a corresponding remote server; The network IO channel established by the server is transmitted to the corresponding remote server to execute each resource acquisition task; monitor whether there is a remote server returning the task execution result to the corresponding network IO channel, and if so, from the corresponding network The IO channel reads the task execution result to obtain corresponding resources. This implementation mode does not rely on the thread pool, can satisfy the concurrent processing of various business resources at the same time, well adapts to business needs, has good horizontal scalability, can reuse resources, reduces resource overhead, and increases development efficiency.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for concurrently acquiring resources. Background technique [0002] In the application framework, the content of multiple business resources needs to be requested synchronously and concurrently, and then assembled and presented to the user. Concurrent acquisition of each resource can reduce user waiting time, improve response speed, and increase server service capabilities. [0003] The existing concurrent acquisition resource scheme submits all tasks that need to be acquired concurrently to the thread pool, and the thread pool maintains the number of threads and the work of the task queue. The thread pool will decide whether to add new ones according to the number of threads as the number of tasks increases. Threads, the threads in the thread pool uninterruptedly obtain tasks from the task queue and execute each task until there are no tasks. 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 Patents(China)
IPC IPC(8): G06F9/50
CPCG06F9/5016G06F9/5038G06F9/5061
Inventor 李瑛
Owner BEIJING JINGDONG SHANGKE INFORMATION 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