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

Method for asynchronous updating based on buffer area

A buffer and asynchronous technology, applied in database updates, special data processing applications, instruments, etc., can solve problems such as threads can only wait, reduce thread processing efficiency, etc., achieve good execution efficiency and improve update efficiency

Active Publication Date: 2015-02-25
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In addition, during the interaction process, the executing thread can only wait, which reduces the processing efficiency of the thread

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 for asynchronous updating based on buffer area
  • Method for asynchronous updating based on buffer area
  • Method for asynchronous updating based on buffer area

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The embodiment of the present invention discloses a buffer-based asynchronous update method. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of embodiments of the invention. It will be apparent, however, to one skilled in the art that embodiments of the invention may be practiced without these specific details.

[0021] A "thread pool" as used herein is a form of multithreading in which tasks are added to a queue and then automatically started after threads are created. Thread pool threads are all background threads. Each thread uses the default stack size, runs at the default priority, and is in a multithreaded apartment. In Java, the thread pool is often used to perform tasks in a multi-threaded environment, and is used to handle functions such as reading, writing, and analysis of multiple files.

[0022] As used here, "lock" is a commonly used tool class in a multi-thre...

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 asynchronous updating based on a buffer area. The method includes the steps that an updating request is submitted; whether a queue is empty or not is judged; if the queue is not empty, queue elements are extracted, and an updating request is ready to be processed; a latest upgrading threshold value is calculated, and the updating request is updated to the local; whether upgrading triggers an upgrading strategy or not is checked; if the updating strategy is trigged, distributed catch or a database is upgraded.

Description

technical field [0001] The present invention relates to data updating, and more specifically, the present invention relates to a buffer-based asynchronous updating method. Background technique [0002] If you want to update a certain value to the distributed cache server or database, you can only update the database or distributed cache directly. However, because the code is usually deployed on multiple servers, and multiple program instances run on each server, it is very likely that two or more update requests will arrive at the distributed cache or database at the same time. [0003] Especially for updating a value. figure 1 A schematic diagram of updating a certain value in the prior art is shown. Such as figure 1 As shown, for example: there is data A in the distributed cache, the value is 1, and there are two (or more than two) program instances that want to increase the value of A + 1 (each instance is updated once, and the ideal update result should be 3) , the p...

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): G06F17/30
CPCG06F16/23
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