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

Method and device for concurrently obtaining resources

A technology for acquiring resources and resources, applied in the computer field, can solve the problems of low efficiency, poor scalability, poor unified control and management, etc., and achieve the effect of good horizontal scalability, reducing resource overhead, and increasing development efficiency

Active Publication Date: 2018-02-23
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 19 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
  • Method and device for concurrently obtaining resources
  • Method and device for concurrently obtaining resources
  • Method and device for concurrently obtaining 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] like 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 resourc...

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 device for concurrently obtaining resources, and relates to the technical field of computers. In one embodiment, the method comprises the steps that multiple resource obtaining tasks of a user are received, wherein each resource obtaining task is used for obtaining one resource on a corresponding remote server; the resource obtaining tasks are sent to the corresponding remote servers through network IO channels built by the resource obtaining tasks and the corresponding remote servers, so that the resource obtaining tasks are executed; whether or not a taskexecution result is sent back to the corresponding network IO channel by one remote server is monitored, and if yes, the task execution result is read from the corresponding network IO channel to obtain the corresponding resource. By means of the embodiment, the method and device do not need to rely on a thread pool, and concurrent treatment of all the business resources can be conducted simultaneously, so that the business requirements are well met, the transverse extensibility is high, the resources are recycled, the resource cost is reduced, and the development efficiency is improved.

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 Applications(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