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

Resource request method and device

A technology for requesting resources and resources, applied in the Internet field, to achieve the effect of improving accuracy and operating efficiency

Inactive Publication Date: 2015-09-16
XIAOMI INC
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The distributed system is characterized by having multiple nodes, each node has its own physical memory space, and the synchronization and mutual exclusion control of the entire distributed system cannot be realized through the lock of a single node itself

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 request method and device
  • Resource request method and device
  • Resource request method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0071] In order to make the objectives, technical solutions, and advantages of the present disclosure clearer, the following further describes the embodiments of the present disclosure in detail with reference to the accompanying drawings.

[0072] An exemplary embodiment of the present disclosure provides a method for requesting resources. The method embodiment is applied to a server, see figure 1 , The method flow includes:

[0073] In step 101, when an event requesting a specified resource is triggered, a resource request is generated according to the timestamp of the local end;

[0074] In step 102, the resource request is added to the request queue of the local end, and the resource request is sent to each designated server in the distributed system;

[0075] In step 103, if a confirmation message returned by each designated server for a resource request is received, and the resource request is ranked first in the request queue of the local end after sorting by the timestamp, the ...

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 resource request method and a resource request device, and belongs to the technical field of the internet. According to the embodiments of the disclosure, when an event requesting a specified resource is triggered, a resource request is sent to other specified servers so that the other specified server confirms whether time stamps of the other specified servers are less than a time stamp carried in the resource request according to the time stamp carried in the resource request; and, when a confirm message returned back by the other specified servers is received and the resource request is located at the first place in a local-end request queue after ordering according to the time stamps, the resource request is executed. Synchronization and mutual exclusion control between multiple nodes in a distributed system are achieved, and accuracy and operation efficiency of the resource request in the distributed system are improved.

Description

Technical field [0001] The present disclosure relates to the field of Internet technology, in particular to a method and device for requesting resources. Background technique [0002] With the development of Internet technology, the amount of resource requests from the terminal to the server side has increased exponentially. The server side deploys a distributed system to solve the increasing resource requests and improves the efficiency of the terminal requesting resources. [0003] In a distributed system, a single node can control concurrent access of multiple processes by setting a lock for a certain shared resource. By closing the lock when the process enters the critical area and unlocking when it exits the critical area, the orderly access to the shared resources by the multiple processes of the node is achieved, and the synchronization and mutual exclusion control of a single node system is realized. The characteristic of a distributed system is that it has multiple nodes ...

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): H04L29/08
CPCH04L67/10
Inventor 沈建荣谭国斌马哲
Owner XIAOMI INC