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

Resource acquisition method and server

A server and resource technology, applied in the computer field, can solve problems such as low throughput, reduce overhead and improve data throughput

Active Publication Date: 2019-11-08
NEUSOFT CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a resource acquisition method and server to solve the technical problem that the throughput of the existing resource database is too small when accessing shared resources concurrently

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
  • Resource acquisition method and server
  • Resource acquisition method and server
  • Resource acquisition method and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention, but not to limit the present invention.

[0057] In order to make it easier for those skilled in the art to understand the technical solutions provided by the embodiments of the present invention, the related technical terms involved are briefly introduced below.

[0058]Server cluster: With the development of e-commerce, people can easily use the website to buy various commodities. Accompanied by the continuous growth of website page views and orders, the requirements for the concurrent processing capability of the website operation system are getting higher and higher. No matter how powerful a single server is, there is always a bottleneck and a single point of failure. In this case, there is a technology in...

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 for resource acquisition and a server, which are used for solving a technical problem that the throughput capacity is too small when the existing resource database carries out concurrent access on shared resources. The method comprises the following steps that the server receives at least one resource request message which is sent by a client; the server carries out locking processing on the at least one resource request message according to an application lock, wherein the application lock allows the server to only process one resource request message at the same time; the server obtains resources in a memory queue according to a first resource request message, wherein the first resource request message is any resource request message in the at least one resource request message, and resources which are obtained from the resource database in batch by the server are stored in the memory queue; and the server returns the obtained resources to the client according to the first resource request message.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a method and a server for obtaining resources. Background technique [0002] Currently, resource sharing in a cluster environment usually uses optimistic locking to lock database resources to avoid conflicts when concurrent threads acquire the same resource. Among them, the same resource in the resource-sharing database can only be accessed by one thread. [0003] The implementation mechanism of using optimistic locking to access resources is as follows: first, the resources to be locked are obtained from the resource pool of the database, and then the resources to be locked are locked by optimistic locking. After the optimistic lock is successfully locked, the server removes the resource from the database and returns the resource to the client. After the client finishes processing the resource, the resource is removed from the resource pool. If the client fails t...

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/5027
Inventor 李东鸽牟晓光
Owner NEUSOFT CORP