CN105590253A - Multi-thread parallel financial flow generation method and system - Google Patents

Multi-thread parallel financial flow generation method and system Download PDF

Info

Publication number
CN105590253A
CN105590253A CN201610018213.6A CN201610018213A CN105590253A CN 105590253 A CN105590253 A CN 105590253A CN 201610018213 A CN201610018213 A CN 201610018213A CN 105590253 A CN105590253 A CN 105590253A
Authority
CN
China
Prior art keywords
order
financial
flowing water
orders
parallel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610018213.6A
Other languages
Chinese (zh)
Inventor
王春晓
金丽丽
张勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Ctrip Business Co Ltd
Original Assignee
Shanghai Ctrip Business Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Ctrip Business Co Ltd filed Critical Shanghai Ctrip Business Co Ltd
Priority to CN201610018213.6A priority Critical patent/CN105590253A/en
Publication of CN105590253A publication Critical patent/CN105590253A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0603Catalogue ordering

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a multi-thread parallel financial flow generation method and a system. The multi-thread parallel financial flow generation method includes following steps: after orders satisfy the condition of entering the flow, the orders are respectively distributed to different to-be-processed queues according to different business types; flow data of all orders in each to-be-processed queue are obtained in sequence; and the flow data of all the orders of each business type is calculated in a multi-thread parallel manner, and financial flow is generated. According to the method and the system, corresponding financial flows are generated for different business types of orders by employing a multi-thread parallel processing mode, the generation efficiency of the financial flows is improved, the total duration for the generation of the financial flows is greatly shortened, and the business requirement of rapid processing and generation of the financial flows can be satisfied.

Description

Parallel financial flowing water based on multithreading generates method and system
Technical field
The present invention relates to a kind of parallel financial flowing water based on multithreading and generate method and system.
Background technology
In prior art, financial flowing water generates the general ordered mode that adopts, and serial mode generates financial flowing water,In the situation that order volume is less, this serial mode can be competent at. But, along with the continuous increasing of order volumeAdd, the tupe of this serial cannot meet the performance requirement of fast processing.
Summary of the invention
The technical problem to be solved in the present invention is in order to overcome the continuous increasing along with order volume in prior artAdd, the tupe that serial generates financial flowing water cannot meet the lacking of performance requirement of fast processingFall into, provide a kind of parallel financial flowing water based on multithreading to generate method and system.
The present invention solves above-mentioned technical problem by following technical proposals:
The invention provides a kind of parallel financial flowing water generation method based on multithreading, its feature is,Comprise the following steps:
Meet and enter after discharge condition at order, order is respectively allocated to difference according to different service typesPending queue;
Obtain successively the flowing water data of all orders in each pending queue;
Utilize the flowing water data of all orders of each type of service of multithreads computing, and generate wealthBusiness flowing water.
Preferably, described type of service comprises that common order, order change label, order insurance and cancellation of orderIn at least one.
The object of the invention is to also provide a kind of parallel financial flowing water generation system based on multithreading,Its feature is, comprising:
Order distribution module, for order meet enter after discharge condition, by order according to different businessType is respectively allocated to different pending queues;
Flowing water data acquisition module, for obtaining successively the stream of all orders of each pending queueWater number certificate;
Parallel computation module, for utilizing all orders of multithreads computing each type of serviceFlowing water data, and generate financial flowing water.
Preferably, described type of service comprises that common order, order change label, order insurance and cancellation of orderIn at least one.
Positive progressive effect of the present invention is: the present invention can adopt the mode of multi-threaded parallel processing to beThe order of different service types generates corresponding financial flowing water, thereby has improved the generation effect of financial flowing waterRate, significantly shortens total duration that financial flowing water generates, and can meet fast processing and generate financial flowing waterBusiness demand.
Brief description of the drawings
Fig. 1 is the stream of the parallel financial flowing water generation method based on multithreading of preferred embodiment of the present inventionCheng Tu.
Fig. 2 is the mould of the parallel financial flowing water generation system based on multithreading of preferred embodiment of the present inventionPiece schematic diagram.
Detailed description of the invention
Mode below by embodiment further illustrates the present invention, but does not therefore limit the present invention toAmong described scope of embodiments.
As shown in Figure 1, the parallel financial flowing water generation method based on multithreading of the present invention comprises following stepRapid:
Step 101, meet and enter after discharge condition at order, by order according to different service types respectivelyBe dispensed to different pending queues;
In the present invention, Distinguish is the problem that the flowing water in order to solve State-dependence generates, and preventsWhen concurrent processing, advance data not yet puts in place, and in the present invention, the type of service of order specifically can comprise commonOrder, order change label, order insurance and cancellation of order etc.
Step 102, obtain successively the flowing water data of all orders in each pending queue;
Step 103, utilize the flowing water data of all orders of each type of service of multithreads computing,And generate financial flowing water.
Wherein, in step 102, obtain the concrete operations of carrying out parallel computation in flowing water data and step 103As follows:
It is first type of service that current compute type is set;
Whether the flowing water data that judge the order of first type of service in pending queue exist, if deposit, obtain the flowing water data of all orders of first type of service, then carry out parallel computation, untilAll calculate, according to the order of type of service, next type of service has been carried out to parallel computation; IfDo not exist, directly according to the order of type of service, next type of service is carried out to parallel computation;
About next type of service being carried out to parallel computation according to the order of type of service, particularly, rootObtain next type of service according to the order of type of service, current compute type is set to next businessType, then obtains the flowing water data of all orders of next type of service, and utilizes multithreading to carry outParallel computation, repeats aforesaid operations, until whole types of service have all been carried out to parallel computation,Become throughout one's life the financial flowing water of whole types of service.
As shown in Figure 2, the parallel financial flowing water generation system based on multithreading of the present invention comprises that order dividesJoin module 1, flowing water data acquisition module 2 and parallel computation module 3, wherein, described order distributesModule 1, for meeting and enter after discharge condition at order, is distributed order respectively according to different service typesTo different pending queues; Described flowing water data acquisition module 2 is pending for obtaining successively eachThe flowing water data of all orders in queue; Described parallel computation module 3 is for utilizing multi-threaded parallel meterCalculate the flowing water data of all orders of each type of service, and generate financial flowing water. Described type of serviceSpecifically can comprise that common order, order change label, order insurance and cancellation of order etc.
Although more than described the specific embodiment of the present invention, those skilled in the art should manageSeparate, these only illustrate, and protection scope of the present invention is limited by appended claims. ThisThe technical staff in field is not deviating under the prerequisite of principle of the present invention and essence, can be to these enforcement sidesFormula is made various changes or modifications, but these changes and amendment all fall into protection scope of the present invention.

Claims (4)

1. the parallel financial flowing water generation method based on multithreading, is characterized in that, comprises followingStep:
Meet and enter after discharge condition at order, order is respectively allocated to difference according to different service typesPending queue;
Obtain successively the flowing water data of all orders in each pending queue;
Utilize the flowing water data of all orders of each type of service of multithreads computing, and generate wealthBusiness flowing water.
2. parallel financial flowing water generation method as claimed in claim 1, is characterized in that described industryBusiness type comprises that common order, order change at least one in label, order insurance and cancellation of order.
3. the parallel financial flowing water generation system based on multithreading, is characterized in that, comprising:
Order distribution module, for order meet enter after discharge condition, by order according to different businessType is respectively allocated to different pending queues;
Flowing water data acquisition module, for obtaining successively the stream of all orders of each pending queueWater number certificate;
Parallel computation module, for utilizing all orders of multithreads computing each type of serviceFlowing water data, and generate financial flowing water.
4. parallel financial flowing water generation system as claimed in claim 3, is characterized in that described industryBusiness type comprises that common order, order change at least one in label, order insurance and cancellation of order.
CN201610018213.6A 2016-01-12 2016-01-12 Multi-thread parallel financial flow generation method and system Pending CN105590253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610018213.6A CN105590253A (en) 2016-01-12 2016-01-12 Multi-thread parallel financial flow generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610018213.6A CN105590253A (en) 2016-01-12 2016-01-12 Multi-thread parallel financial flow generation method and system

Publications (1)

Publication Number Publication Date
CN105590253A true CN105590253A (en) 2016-05-18

Family

ID=55929816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610018213.6A Pending CN105590253A (en) 2016-01-12 2016-01-12 Multi-thread parallel financial flow generation method and system

Country Status (1)

Country Link
CN (1) CN105590253A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105931003A (en) * 2016-06-03 2016-09-07 北京京东尚科信息技术有限公司 Order processing method, system and device
CN107145565A (en) * 2017-05-04 2017-09-08 深圳乐信软件技术有限公司 A kind of generation method of pipelined data, apparatus and system
CN107402939A (en) * 2016-05-20 2017-11-28 平安科技(深圳)有限公司 Declaration form treating method and apparatus
WO2019041768A1 (en) * 2017-08-28 2019-03-07 平安科技(深圳)有限公司 Method and apparatus for controlling underwriting processing, computer device, and storage medium
CN112418667A (en) * 2020-11-23 2021-02-26 南京星邺汇捷网络科技有限公司 Automatic task order dispatching method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030191674A1 (en) * 2002-04-05 2003-10-09 Hale Don E. Financial flow business model for virtual vertically integrated network-based business
CN103516536A (en) * 2012-06-26 2014-01-15 重庆新媒农信科技有限公司 Server service request parallel processing method based on thread number limit and system thereof
CN104572290A (en) * 2013-10-11 2015-04-29 中兴通讯股份有限公司 Method and device for controlling message processing threads
CN104751359A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 System and method for payment and settlement
CN105183549A (en) * 2015-08-27 2015-12-23 携程计算机技术(上海)有限公司 Automatic ticketing system based on task assignment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030191674A1 (en) * 2002-04-05 2003-10-09 Hale Don E. Financial flow business model for virtual vertically integrated network-based business
CN103516536A (en) * 2012-06-26 2014-01-15 重庆新媒农信科技有限公司 Server service request parallel processing method based on thread number limit and system thereof
CN104572290A (en) * 2013-10-11 2015-04-29 中兴通讯股份有限公司 Method and device for controlling message processing threads
CN104751359A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 System and method for payment and settlement
CN105183549A (en) * 2015-08-27 2015-12-23 携程计算机技术(上海)有限公司 Automatic ticketing system based on task assignment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402939A (en) * 2016-05-20 2017-11-28 平安科技(深圳)有限公司 Declaration form treating method and apparatus
CN107402939B (en) * 2016-05-20 2020-06-09 平安科技(深圳)有限公司 Policy processing method and device
CN105931003A (en) * 2016-06-03 2016-09-07 北京京东尚科信息技术有限公司 Order processing method, system and device
CN105931003B (en) * 2016-06-03 2020-06-30 北京京东尚科信息技术有限公司 Order processing method, system and device
CN107145565A (en) * 2017-05-04 2017-09-08 深圳乐信软件技术有限公司 A kind of generation method of pipelined data, apparatus and system
CN107145565B (en) * 2017-05-04 2019-10-22 深圳乐信软件技术有限公司 A kind of generation method of pipelined data, apparatus and system
WO2019041768A1 (en) * 2017-08-28 2019-03-07 平安科技(深圳)有限公司 Method and apparatus for controlling underwriting processing, computer device, and storage medium
CN112418667A (en) * 2020-11-23 2021-02-26 南京星邺汇捷网络科技有限公司 Automatic task order dispatching method and system

Similar Documents

Publication Publication Date Title
CN105590253A (en) Multi-thread parallel financial flow generation method and system
CN103970851B (en) The method that magnanimity Credential data directly provides general headquarters of large-size enterprise group financial statement
CN102542359A (en) Method for optimizing arrangement and distribution of multi-target emergency rescue resources
CN107331170B (en) Intersection signal timing evaluation method and system based on the green light loss time
Gu et al. Green scheduling for cloud data centers using renewable resources
CN104536804A (en) Virtual resource dispatching system for related task requests and dispatching and distributing method for related task requests
CN103279505B (en) A kind of based on semantic mass data processing method
CN103413217A (en) Control method and control device for prepayment system
Appino et al. Reliable dispatch of renewable generation via charging of time-varying PEV populations
CN106776025A (en) A kind of computer cluster job scheduling method and its device
CN109214110B (en) Long-distance water lifting project optimized scheduling method
CN112651177A (en) Power distribution network flexible resource allocation method and system considering flexible service cost
CN108681791A (en) A kind of density of stream of people prediction technique, device and storage medium
CN106130929A (en) The service message automatic processing method of the Internet based on graph-theoretical algorithm insurance field and system
CN117709638A (en) Method and system for optimizing reliability improvement measures of large sending end system
CN103002053B (en) The profit maximization dispatching method of cloud computing and system
Larbwisuthisaroj et al. Wheeling charge considering line flow differentiation based on power flow calculation
CN106485372A (en) The assessment of public bus network fitted out vehicles amount and optimization method and system
CN116914845A (en) Power grid dispatching method and system for coupling demand response and carbon capture dispatching
CN102609820A (en) Buffer adjustment method for key chain based on project property
Raymond et al. Positive edge: A pricing criterion for the identification of non-degenerate simplex pivots
CN109492957A (en) Method and device for evaluating operating efficiency of power distribution network line and storage medium
CN112183903B (en) Multi-time scale joint optimization scheduling method and system for water-fire-electricity system
CN103489077B (en) Electric appliance task dispatching method and electric appliance task dispatching device
CN114037414A (en) Scheduling plan generation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160518