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

Lottery claiming method

A lottery ticket and caching technology, applied in the field of lottery prize redemption management, can solve the problems of expensive magnetic head rotation and positioning operations, time-consuming power consumption and easy damage, and achieve the effect of improving efficiency and prolonging service life

Inactive Publication Date: 2018-06-01
北京中体骏彩信息技术有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But, for updating lottery tickets, the traditional update lottery ticket operation also involves random writing of the disk (for example, after each lottery ticket is read, the lottery ticket needs to be updated, and the random writing of the disk is involved when updating the lottery ticket, when each lottery ticket When redeeming prizes, it needs to be randomly written once, which requires a large number of random writes). From a hardware perspective, random writing of the disk requires expensive head rotation and positioning operations, which is time-consuming, power-consuming and vulnerable

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
  • Lottery claiming method
  • Lottery claiming method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] The embodiment of the present application provides a lottery prize redemption method, which changes multiple random writes to the disk into one sequential write to the disk according to certain rules, reduces the number of disk writes, and prolongs the service life of the hardware. The specific steps of the method are as follows:

[0053]S101. Create a ticket cache; the ticket cache includes multiple logical blocks; each logical block can store a specified number of lottery tickets; initialize a specified number of hash slots for managing the logical blocks. The hash slot manages a list of logical blocks. Each lottery ticket will determine the logical block in the ticket cache saved after reading from the reference ticket file according to the location of the ticket in the reference ticket file on the disk and the size of the logical block. , and then manage the logical blocks in the ticket cache using hash slots. When the application starts, after the hash slot is suc...

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 provides a lottery claiming method. The method comprises the steps of A, storing each corresponding lottery state change request sequence generated during lottery claiming into a presetbuffer area; B, when the number of the lottery state change requests stored in the preset buffer area reaches a specified number threshold value, combining the lottery state change requests into a request submission once so as to write the changed lottery state information into a ticket state change file in a magnetic disc once. Therefore, the lottery claiming method is beneficial to improving thesystem performance and protecting hardware resources.

Description

technical field [0001] The invention relates to the technical field of lottery prize redemption management, in particular to a lottery prize redemption method. Background technique [0002] With the vigorous development of the lottery industry, more lottery players are attracted to pay attention to and participate in the lottery. There are two business activities in the prize redemption operation: reading lottery tickets and updating lottery tickets. Reading lottery tickets is a random disk read operation, and random disk read The caching mechanism can be used to minimize disk random read operations and improve the hit rate. But, for updating lottery tickets, the traditional update lottery ticket operation also involves random writing of the disk (for example, after each lottery ticket is read, the lottery ticket needs to be updated, and the random writing of the disk is involved when updating the lottery ticket, when each lottery ticket When redeeming prizes, it needs to b...

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): G06F3/06G06F17/30
CPCG06F3/061G06F3/0616G06F3/0656G06F16/2255G06F16/24552
Inventor 方舟
Owner 北京中体骏彩信息技术有限公司
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