CN106021399A - Query request message processing method and apparatus - Google Patents

Query request message processing method and apparatus Download PDF

Info

Publication number
CN106021399A
CN106021399A CN201610315939.6A CN201610315939A CN106021399A CN 106021399 A CN106021399 A CN 106021399A CN 201610315939 A CN201610315939 A CN 201610315939A CN 106021399 A CN106021399 A CN 106021399A
Authority
CN
China
Prior art keywords
thread
inquiry
request message
main thread
inquiry request
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.)
Granted
Application number
CN201610315939.6A
Other languages
Chinese (zh)
Other versions
CN106021399B (en
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201610315939.6A priority Critical patent/CN106021399B/en
Publication of CN106021399A publication Critical patent/CN106021399A/en
Application granted granted Critical
Publication of CN106021399B publication Critical patent/CN106021399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing

Abstract

The invention discloses a query request message processing method and apparatus. The method comprises the steps that a main thread receives a query request message from a game logic server process; the main thread selects one query thread from a plurality of query threads according to request content of the query request message, wherein the query thread is used for independently finishing operation corresponding to the query request message; and the main thread sends the query request message to a first preset storage region corresponding to the selected query thread. According to the query request message processing method and apparatus, the technical problem that in related technologies, an adopted storage framework that multiple threads independently run or share a lua virtual machine, or an adopted storage framework that the multiple threads independently run the lua virtual machine cannot achieve the purposes of supporting synchronous query and reducing interaction among processes or the threads to ensure data operation security is solved.

Description

The processing method and processing device of inquiry request message
Technical field
The present invention relates to computer realm, in particular to the processing method and processing device of a kind of inquiry request message.
Background technology
At present, the design of existing data of network game storage application framework is read because being limited by data base querying or file The speed that input and output (IO) operate such as write to limit, so multithreading or multiple progress structure would generally be designed to, To improve inquiry, the efficiency of storage data.And for a network game project based on lua language development, Owing to multithreaded architecture do not supported in lua language itself, therefore, conventional several data-storage applications program frames can Following several to include:
1. only having main thread to run lua virtual machine, other threads receive in the C language running environment of process and come from The asynchronous query request of main thread, performs query logic, and adjusts back to main thread.
The storing framework realized in this way, its major defect is: for application development, not Close friend, because it can only write asynchronous query logic, and all of Query Result has to wait for asynchronous thread and adjusts back to master Thread.
The most each process runs a lua virtual machine, it is provided that the data-query interfaces of synchronization.
The storing framework that this mode realizes, although the most friendly for application development, and synchronization can be provided to look into Ask;But have a disadvantage in that: the framework of multi-process is increasingly complex compared to structure for multithreading framework, moreover, by Manage these processes in generally also needing to an independent process, therefore, the workload managing multiple processes can be increased, this Outward, communicate between multi-process do not have between multithreading yet convenient.
The most only created a lua virtual machine by main thread, and shared this lua virtual machine by other threads, by one Virtual machine lock (i.e. one operating system thread lock) of the individual overall situation realizes thread synchronization.Due to lua language itself also Not providing this virtual machine to lock, only provide the interface (lua_lock, lua_unlock) of correspondence, application program needs (being similar to the overall interpreter lock of python language, its difference is: needing should to want oneself to realize virtual machine lock Realize by program self).
The major defect of the storing framework of this mode is: owing to multithreading shares virtual machine, thread the most excessively frequency Numerous, certain security risk can be there is;And, operations based on shared data in the running environment of lua script Security consideration, generally also needs to realize thread lock in lua script, operates the shared data of lua script every time Time be required for carrying out locking process.
In sum, either use multithreading independent operating or the storing framework of shared lua virtual machine, or be Use the storing framework of multi-process independent operating lua virtual machine, all cannot realize supporting synchronous query, simultaneously The safety guaranteeing data manipulation alternately between process or thread can also be reduced.
For above-mentioned problem, effective solution is the most not yet proposed.
Summary of the invention
Embodiments provide the processing method and processing device of a kind of inquiry request message, at least to solve correlation technique Employed in multithreading independent operating or the storing framework of shared lua virtual machine, or be use multi-process only The vertical storing framework running lua virtual machine, all cannot realize supporting synchronous query, can also reduce simultaneously into The technical problem of the safety guaranteeing data manipulation alternately between journey or thread.
An aspect according to embodiments of the present invention, it is provided that the processing method of a kind of inquiry request message, including:
Main thread receives the inquiry request message coming from game logic server process;Main thread disappears according to inquiry request The request content of breath chooses one of them inquiry thread from multiple queries thread, and wherein, inquiry thread is for independent complete Become the operation corresponding with inquiry request message;Inquiry request message is sent to corresponding with the inquiry thread chosen by main thread First preset memory area.
Alternatively, main thread according to request content choose from multiple queries thread one of them inquiry thread include following One of: if according to request content, main thread determines that inquiry request message exists with previously received inquiry request message Sequential relationship, then it is corresponding with previously received inquiry request message that main thread chooses execution from multiple queries thread Inquiry operation inquiry thread as the inquiry thread chosen;If main thread determines inquiry request according to request content Message and previously received inquiry request message not in the presence of order relation, then main thread from multiple queries thread with Machine chooses any one inquiry thread as the inquiry thread chosen.
Alternatively, before inquiry request message transmission is preset memory area to first by main thread, also include: main line Cheng Kaiqi thread lock;And after inquiry request message transmission is preset memory area to first by main thread, also include: Main thread closes thread lock.
Alternatively, after inquiry request message transmission first is preset memory area by main thread, also include: main thread Preset memory area from corresponding with main thread second and obtain Query Result;Query Result is back to game and patrols by main thread Collect server processes, and Query Result is preset deletion memory area from second.
Alternatively, before main thread presets memory area acquisition Query Result from second, also include: main thread is opened Thread lock;And at main thread, Query Result is back to game logic server process, and by Query Result from second Preset after memory area is deleted, also include: main thread closes thread lock.
Alternatively, after inquiry request message transmission first is preset memory area by main thread, also include: main thread Monitor the duty of multiple queries thread in real time;Main thread partly or entirely looking in multiple queries thread being detected In the case of asking thread generation operation irregularity, perform reboot operation to there is abnormal inquiry thread.
Alternatively, after inquiry request message transmission first is preset memory area by main thread, also include: main thread On the basis of multiple queries thread, one or more inquiry thread is increased or decreased according to current loading condition.
Alternatively, after inquiry request message transmission first is preset memory area by main thread, also include: main thread In the case of getting and exiting signal, notice multiple queries thread performs to exit operation, wherein, exit signal for Close inquiry service;Main thread is after wait multiple queries thread is fully completed and exits operation, and perform self exits behaviour Make.
Alternatively, receive the inquiry request message coming from game logic server process at main thread before, also include: The network that main thread is set up between self with game logic server process is connected;Main thread creates multiple queries thread, And be respectively adopted different global identifiers each inquiry thread in multiple queries thread is made a distinction.
Another aspect according to embodiments of the present invention, additionally provides the processing method of another kind of inquiry request message, including:
Inquiry thread presets acquisition inquiry request message in memory area from first under the triggering of the virtual machine self created, Wherein, inquiry request message is to be received and be forwarded to first by main thread from game logic server process to preset storage Region;Inquiry thread performs the operation corresponding with inquiry request message, and Query Result feeds back to second default deposits Storage area territory, wherein, second presets memory area obtains Query Result for main thread.
Alternatively, after Query Result being fed back to second and presets memory area, also include: inquiry thread receives From exiting signal in main thread, wherein, signal is exited for closing inquiry service;Inquiry thread closes virtual machine also The data of cleaning therein.
Alternatively, corresponding with inquiry request message operation includes one below: database query operations;Read or write Enter file data operation;The calculating operation corresponding with central processing unit (CPU) occupation rate.
Another aspect according to embodiments of the present invention, it is provided that the processing means of a kind of inquiry request message, this device should For main thread, including:
Receiver module, for receiving the inquiry request message coming from game logic server process;Choose module, use From multiple queries thread, choose one of them inquiry thread in the request content according to inquiry request message, wherein, look into Ask thread and be used for the operation that complete independently is corresponding with inquiry request message;Sending module, for sending out inquiry request message What the inquiry thread delivered to and choose was corresponding first presets memory area.
Alternatively, choose module, if determining inquiry request message and previous receipt for main thread according to request content Order relation in the presence of the inquiry request message arrived, then main thread chooses execution and previous receipt from multiple queries thread To inquiry request message corresponding inquiry operation inquiry thread as the inquiry thread chosen;Or, if main line Journey determines order relation in the presence of inquiry request message and previously received inquiry request message are not according to request content, that Main thread randomly selects any one inquiry thread as the inquiry thread chosen from multiple queries thread.
Alternatively, said apparatus also includes: the first opening module, is used for opening thread lock;And first close module, For closing thread lock.
Alternatively, said apparatus also includes: acquisition module, for presetting memory area from corresponding with main thread second Obtain Query Result;Processing module, for Query Result is back to game logic server process, and ties inquiry Fruit is preset memory area from second and deletes.
Alternatively, said apparatus also includes: the second opening module, is used for opening thread lock;And second close module, For closing thread lock.
Alternatively, said apparatus also includes: monitoring module, for the duty of monitoring multiple queries thread in real time; Reset module, for the situation partly or entirely inquiring about thread generation operation irregularity in multiple queries thread being detected Under, perform reboot operation to there is abnormal inquiry thread.
Alternatively, said apparatus also includes: adjusting module, is used for according to current loading condition at multiple queries thread On the basis of one or more inquiry thread is increased or decreased.
Alternatively, said apparatus also includes: notification module, and in the case of getting and exiting signal, notice is many Individual inquiry thread performs to exit operation, wherein, exits signal for closing inquiry service;Exit module, for waiting After multiple queries thread is fully completed and exits operation, perform self exits operation.
Alternatively, said apparatus also includes: set up module, is used for setting up between self and game logic server process Network connect;Creation module, is used for creating multiple queries thread, and is respectively adopted different global identifiers to many Each inquiry thread in individual inquiry thread makes a distinction.
Another further aspect according to embodiments of the present invention, additionally provides the processing means of another kind of inquiry request message, this dress Put and be applied to inquire about thread, including:
Acquisition module, preset from first under the triggering of the virtual machine created at self obtain inquiry in memory area please Seeking message, wherein, inquiry request message is to be received from game logic server process by main thread and be forwarded to first Preset memory area;Perform module, for performing the operation corresponding with inquiry request message and Query Result is anti- Being fed to second and preset memory area, wherein, second presets memory area obtains Query Result for main thread.
Alternatively, said apparatus also includes: receiver module, for receive come from main thread exit signal, wherein, Exit signal for closing inquiry service;Close module, for closing virtual machine and clearing up the data of therein.
Alternatively, corresponding with inquiry request message operation includes one below: database query operations;Read or write Enter file data operation;The calculating operation corresponding with CPU occupation rate.
In embodiments of the present invention, use the overall architecture of main thread and multiple queries thread, by main thread receive from In the inquiry request message of game logic server process, and according to the request content of inquiry request message from multiple queries Thread is chosen one of them inquiry thread and inquiry request message is sent to corresponding with the inquiry thread chosen the One presets memory area, i.e. uses main thread individual reception inquiry request message, independently chooses inquiry thread and independently divides Send out inquiry request message and preset memory area, the most again by looking into of being selected to corresponding with the inquiry thread chosen first Inquiry thread, by the mode of operation corresponding with inquiry request message for complete independently, disappears for inquiry request by main thread is unified Breath is chosen inquiry thread and distributes inquiry request message, has reached to support the purpose that multiple queries thread realizes synchronous query; And, also by the inquiry thread being selected by operation corresponding with inquiry request message for complete independently, without with Other inquiry threads carry out that information is mutual or information sharing, have reached guaranteeing number alternately between minimizing process or thread Purpose according to the safety of operation;It is achieved thereby that promote the work efficiency of inquiry thread and guarantee the peace of data manipulation The technique effect of full property, and then solve the multithreading independent operating employed in correlation technique or shared lua is virtual The storing framework of machine, or be the storing framework of the multi-process independent operating lua virtual machine used, all both cannot realize Synchronous query can be supported, the safety guaranteeing data manipulation alternately between process or thread can also be reduced simultaneously Technical problem.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.At accompanying drawing In:
Fig. 1 is the flow chart of the processing method of inquiry request message according to embodiments of the present invention;
Fig. 2 is the flow chart of the processing method of another kind of inquiry request message according to embodiments of the present invention;
Fig. 3 is the structured flowchart of the processing means of inquiry request message according to embodiments of the present invention;
Fig. 4 is the structured flowchart of the processing means of inquiry request message according to the preferred embodiment of the invention;
Fig. 5 is the structured flowchart of the processing means of another kind of inquiry request message according to embodiments of the present invention;
Fig. 6 is the structured flowchart of the processing means of another kind of according to the preferred embodiment of the invention inquiry request message;
Fig. 7 is the overall structure schematic diagram of data frame memory frame according to the preferred embodiment of the invention;
Fig. 8 is according to the preferred embodiment of the invention based on main thread specific works in the data storage threads shown in Fig. 7 The flow chart of process;
Fig. 9 is performing based on the concrete of inquiry thread in the data storage threads shown in Fig. 7 of the preferred embodiment of the present invention The flow chart of process.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with in the embodiment of the present invention Accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described embodiment It is only the embodiment of a present invention part rather than whole embodiments.Based on the embodiment in the present invention, ability The every other embodiment that territory those of ordinary skill is obtained under not making creative work premise, all should belong to The scope of protection of the invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " it is etc. for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that this Sample use data can exchange in the appropriate case, in order to embodiments of the invention described herein can with except Here the order beyond those illustrating or describing is implemented.Additionally, term " includes " and " having " and they Any deformation, it is intended that cover non-exclusive comprising, such as, contain series of steps or the process of unit, side Method, system, product or equipment are not necessarily limited to those steps or the unit clearly listed, but can include the clearest List or for intrinsic other step of these processes, method, product or equipment or unit.
According to embodiments of the present invention, it is provided that the embodiment of the processing method of a kind of inquiry request message, explanation is needed It is can to hold in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing OK, and, although show logical order in flow charts, but in some cases, can be to be different from herein Order perform shown or described by step.
Fig. 1 is the flow chart of the processing method of inquiry request message according to embodiments of the present invention, as it is shown in figure 1, should Method comprises the steps:
Step S102, main thread receives the inquiry request message coming from game logic server process;
Step S104, main thread chooses one of them according to the request content of inquiry request message from multiple queries thread Inquiry thread, wherein, inquiry thread is used for the operation that complete independently is corresponding with inquiry request message;
Step S106, inquiry request message is sent to corresponding with the inquiry thread chosen first to preset and stores by main thread Region.
Above-mentioned first to preset memory area can be inquiry request message queue, each inquiry thread respectively corresponding one look into Asking request message queue, the data in this inquiry request message queue are shared with each inquiry thread by main thread.
By above-mentioned steps, main thread individual reception inquiry request message can be used, independently choose inquiry thread the most solely Vertical distribution inquiry request message presets memory area, the most again by being selected to corresponding with the inquiry thread chosen first Inquiry thread by the mode of operation corresponding with inquiry request message for complete independently, ask for inquiry by main thread is unified Ask message choose inquiry thread and distribute inquiry request message, reached to support that multiple queries thread realizes synchronous query Purpose;And, also by the inquiry thread being selected by operation corresponding with inquiry request message for complete independently, and not Need to carry out with other inquiry threads that information is mutual or information sharing, reached between minimizing process or thread mutual come Guarantee the purpose of the safety of data manipulation;It is achieved thereby that promote the work efficiency of inquiry thread and guarantee that data are grasped The technique effect of the safety made, and then solve the multithreading independent operating employed in correlation technique or share The storing framework of lua virtual machine, or it is the storing framework of the multi-process independent operating lua virtual machine used, equal nothing Method realizes supporting synchronous query, can also reduce simultaneously and guarantee data manipulation alternately between process or thread The technical problem of safety.
Alternatively, in step S104, main thread is chosen one of them according to request content from multiple queries thread and is looked into Ask thread and can include one of in the following manner:
If according to request content, mode one main thread determines that inquiry request message disappears with previously received inquiry request Order relation in the presence of breath, then main thread is chosen execution from multiple queries thread and disappeared with previously received inquiry request The inquiry thread of the inquiry operation that breath is corresponding is as the inquiry thread chosen;
If needing to ensure the time sequencing of data query operation, then can choose mode so that use is this, it may insure that The data inquiry request first initiated first carry out (such as: for player's data inquiry operate, if the data of cannot ensure The order of inquiry operation performs, it is more likely that player's data can be caused to occur abnormal).
If according to request content, mode two main thread determines that inquiry request message disappears with previously received inquiry request Order relation in the presence of ceasing not, then main thread randomly selects any one inquiry thread as choosing from multiple queries thread Inquiry thread.
This mode of choosing generally just can use in the case of having no need to ensure that inquiry request message order execution, example As: the historical records such as inquiry games log.
Alternatively, in step S106, inquiry request message is sent before presetting memory area to first by main thread, also Can include step performed below:
Step S105, main thread opens thread lock;And
In step S106, inquiry request message is sent after presetting memory area to first by main thread, it is also possible to include Step performed below:
Step S107, main thread closes thread lock.
Owing to the inquiry request message queue (i.e. first presets memory area) of thread is main thread and each inquiry thread The data shared, therefore, need to use the thread lock of operating system, to avoid looking into of receiving at main thread herein Ask during asking message to join inquiry request message queue, be subject to dry because this inquiry thread performs other operations Disturb and then exception occurs.So, main thread amendment inquiry request message queue before use operating system function (such as: Pthread_mutex_lock) lock, and main thread re-use after amendment completes operating system function (such as: Pthread_mutex_unlock) it is unlocked.
Alternatively, in step S106, after inquiry request message transmission first is preset memory area by main thread, also may be used To include step performed below:
Step S108, main thread is preset memory area from corresponding with main thread second and is obtained Query Result;
Step S109, Query Result is back to game logic server process by main thread, and by Query Result from second Preset in memory area and delete.
Above-mentioned second to preset memory area can be a Query Result queue.This Query Result queue can be by main thread Arrange and only one of which.During being preferable to carry out, whether main thread detection Query Result queue exists Query Result, If it is present need to be sent to Query Result Internet, and delete from Query Result queue.
Alternatively, in step S108, main thread is preset before memory area obtains Query Result from second, it is also possible to bag Include step performed below:
Step S107 ', main thread opens thread lock;
And in step S109, Query Result is back to game logic server process by main thread, and by Query Result Preset from second after memory area is deleted, it is also possible to include step performed below:
Step S110, main thread closes thread lock.
Owing to Query Result queue is similar to inquiry request message queue, it is also main thread and inquires about the number that thread is shared According to, therefore, the operation (such as: main thread searches Query Result in Query Result queue) to this Query Result queue It is also required to add thread lock and be unlocked after operation completes.
Alternatively, in step S106, after inquiry request message transmission first is preset memory area by main thread, also may be used To include step performed below:
Step S111, main thread monitors the duty of multiple queries thread in real time;
Step S112, the main thread partly or entirely inquiry thread generation operation irregularity in multiple queries thread being detected In the case of, perform reboot operation to there is abnormal inquiry thread.
Main thread can monitor the duty of each inquiry thread self created in real time, when finding wherein certain or certain A little inquiry threads generations are abnormal is automatically to restart and abnormal inquiry thread occurs or creates new inquiry thread really Protect being smoothed out, to improve the vigorousness of whole framework of follow-up data operation.
If it addition, main thread monitors partly or entirely inquiry thread generation operation irregularity, it is also possible to Realtime Alerts carries Awake developer processes in time, and person to be developed can reactivate these inquiry threads after having processed.
Alternatively, in step S106, after inquiry request message transmission first is preset memory area by main thread, also may be used To include step performed below:
Step S113, main thread is increased or decreased one according to current loading condition on the basis of multiple queries thread Or multiple queries thread.
The overall structure framework using a main thread and the combination of multiple queries thread has good autgmentability.I.e. inquire about The quantity of thread can dynamically extend or reduce, main thread can dynamically increase according to current inquiry load condition or Reduce the quantity of inquiry thread.
Alternatively, in step S106, after inquiry request message transmission first is preset memory area by main thread, also may be used To include step performed below:
Step S114, main thread is in the case of getting and exiting signal, and notice multiple queries thread performs to exit operation, Wherein, signal is exited for closing inquiry service;
Step S115, main thread is after wait multiple queries thread is fully completed and exits operation, and perform self exits behaviour Make.
If the process that receives main thread exits signal (such as: when server needs to be serviced, closedown service The script of device process sends), then need to notify that all responsible inquiry threads performing inquiry operation exit, and wait all Exiting of thread.After confirming that all inquiry threads exit, main thread close the lua virtual machine himself created and Before main thread exits, main thread also needs to clear up whole process data.
Alternatively, in step S102, main thread receive come from game logic server process inquiry request message it Before, it is also possible to include step performed below:
Step S100, the network that main thread is set up between self with game logic server process is connected;
Step S101, main thread creates multiple queries thread, and is respectively adopted different global identifiers to multiple queries Each inquiry thread in thread makes a distinction.
Can ask to set up network with data storage process after game logic server process initiation to be connected.Look into whenever there being data During inquiry demand, will be connected by network and send inquiry request message to data storage process.In data storage process Main thread, can be in self and game logic server after receiving the connection request that game logic server process is initiated Network service is set up between process.Further, main thread can create multiple queries thread and start these and created The inquiry thread become, manages the inquiry thread being currently running by a thread pool, wherein, every at main thread Secondary establishment complete one inquiry thread after be required to into this inquiry thread arrange or distribution one overall identification, with realize with Other inquiry thread phase regions divide.
According to another embodiment of the invention, additionally providing the processing method of another kind of inquiry request message, Fig. 2 is The flow chart of the processing method of another kind of inquiry request message according to embodiments of the present invention, as in figure 2 it is shown, the method Comprise the steps:
Step S202, inquiry thread under the triggering of the virtual machine self created from first preset memory area in obtain and look into Asking request message, wherein, inquiry request message is to be received by main thread from game logic server process and be forwarded to First presets memory area;
Step S204, inquiry thread performs the operation corresponding with inquiry request message, and Query Result is fed back to second Presetting memory area, wherein, second presets memory area obtains Query Result for main thread.
After main thread has created multiple queries thread, each inquiry thread also needs to create and to run oneself independent Lua virtual machine, does not share virtual-machine data, and only main thread and inquiry thread is by disappearing between multiple queries thread Breath communicates.Due to without extra shared data, and need not latching operation frequently, therefore, greatly carry Rise the work efficiency of thread.
It addition, the lua virtual machine of each inquiry thread is self-existent, it is impossible to have access to the data of other virtual machines, And any one inquiry thread goes wrong and does not interferes with the stability of entirety.
Further, the inquiry operation corresponding with inquiry request message performed by thread is with thread at each virtual machine The mode blocked synchronizes the object to be operated returns such as execution, i.e. inquiry thread need after having performed concrete operations Operating result, can continue to run with, with avoid asynchronous operation to be brought inconvenience (such as: asynchronous data storehouse operate Inquiry mode, each database manipulation needs to register a call back function to receive database query result, and this gives number Inconvenience is brought) according to storehouse exploitation.
During being preferable to carry out, the operation corresponding with inquiry request message can include but not limited to one below:
(1) database query operations;
(2) read or write file data operation;
(3) corresponding with central processing unit (CPU) occupation rate calculating operation.
Alternatively, in step S204, Query Result is fed back to second preset memory area after, it is also possible to include with Lower execution step:
Step S205, inquiry thread receive come from main thread exit signal, wherein, exit signal and look into for closing Ask service;
Step S206, inquiry thread is closed virtual machine and clears up the data of therein.
After inquiry thread receives the signal that host process exits, it will close the lua virtual machine of inquiry thread.Then, Inquiry thread also can clear up therein data (it includes but not limited to: the related data of inquiry request message queue, The related data of query request thread lock), and exit thread.
According to another embodiment of the present invention, it is provided that the embodiment of the processing means of a kind of inquiry request message, this dress Put and be applied to main thread.Fig. 3 is the structured flowchart of the processing means of inquiry request message according to embodiments of the present invention. As it is shown on figure 3, this device includes: receiver module 100, come from looking into of game logic server process for receiving Ask request message;Choose module 102, for selecting from multiple queries thread according to the request content of inquiry request message Taking one of them inquiry thread, wherein, inquiry thread is used for the operation that complete independently is corresponding with inquiry request message;Send out Sending module 104, presetting memory area for inquiry request message being sent extremely corresponding with the inquiry thread chosen first.
Alternatively, choose module 102, if determining that inquiry request message was with previously for main thread according to request content Order relation in the presence of the inquiry request message received, then main thread chooses execution with previously from multiple queries thread The inquiry thread of the inquiry operation that the inquiry request message that receives is corresponding is as the inquiry thread chosen;Or, if Main thread determines order relation in the presence of inquiry request message and previously received inquiry request message are not according to request content, So main thread randomly selects any one inquiry thread as the inquiry thread chosen from multiple queries thread.
Alternatively, Fig. 4 is the structured flowchart of the processing means of inquiry request message according to the preferred embodiment of the invention. As shown in Figure 4, said apparatus can also include: the first opening module 106, is used for opening thread lock;And first Close module 108, be used for closing thread lock.
Alternatively, as shown in Figure 4, said apparatus can also include: acquisition module 110, for from main thread pair Second answered is preset memory area and obtains Query Result;Processing module 112, patrols for Query Result is back to game Collect server processes, and Query Result is preset deletion memory area from second.
Alternatively, as shown in Figure 4, said apparatus can also include: the second opening module 114, is used for opening thread Lock;And second close module 116, be used for closing thread lock.
Alternatively, as shown in Figure 4, said apparatus can also include: monitoring module 118, multiple for monitoring in real time The duty of inquiry thread;Reset module 120, for partly or entirely looking in multiple queries thread being detected In the case of asking thread generation operation irregularity, perform reboot operation to there is abnormal inquiry thread.
Alternatively, as shown in Figure 4, said apparatus can also include: adjusting module 122, for bearing according to current Load situation is increased or decreased one or more inquiry thread on the basis of multiple queries thread.
Alternatively, as shown in Figure 4, said apparatus can also include: notification module 124, for exiting getting In the case of signal, notice multiple queries thread performs to exit operation, wherein, exits signal for closing inquiry service; Exiting module 126, after being fully completed exit operation at wait multiple queries thread, perform self exits operation.
Alternatively, as shown in Figure 4, said apparatus can also include: sets up module 128, is used for setting up self and trip Network between play logical server process connects;Creation module 130, is used for creating multiple queries thread, and difference Use different global identifiers that each inquiry thread in multiple queries thread is made a distinction.
According to further embodiment of the present invention, additionally provide the embodiment of the processing means of another kind of inquiry request message, This device is applied to inquire about thread.Fig. 5 is the processing means of another kind of inquiry request message according to embodiments of the present invention Structured flowchart.As it is shown in figure 5, this device includes: acquisition module 200, for the virtual machine in self establishment Preset from first under triggering and obtain inquiry request message in memory area, wherein, inquiry request message be by main thread from Game logic server process receives and is forwarded to first and presets memory area;Perform module 202, be used for performing The operation corresponding with inquiry request message, and Query Result is fed back to second preset memory area, wherein, second is pre- If memory area obtains Query Result for main thread.
During being preferable to carry out, the operation corresponding with inquiry request message can include but not limited to one below:
(1) database query operations;
(2) read or write file data operation;
(3) corresponding with central processing unit (CPU) occupation rate calculating operation.
Alternatively, Fig. 6 is the structure of the processing means of another kind inquiry request message according to the preferred embodiment of the invention Block diagram.As shown in Figure 6, said apparatus can also include: receiver module 204, comes from main thread for receiving Exit signal, wherein, exit signal for closing inquiry service;Close module 206, be used for closing virtual machine the most clear The data of reason therein.
Below in conjunction with the preferred implementation shown in Fig. 7 to Fig. 9, the above-mentioned process that is preferable to carry out is further described.
Fig. 7 is the overall structure schematic diagram of data frame memory frame according to the preferred embodiment of the invention.As it is shown in fig. 7, Right side represents data storage process, and left side game representation logical server process, wherein, data storage process can be wrapped Include: a main thread (i.e. managing thread) and multiple queries thread.
Thread management monitoring module in main thread (be equivalent to above-mentioned creation module, monitoring module, replacement module and Adjusting module) mainly it to be responsible for inquiring about thread, its job function can include but not limited at least one of: wound Build inquiry thread, destroy inquiry thread, the running status of monitoring and inquiry thread.
Can ask to set up network with data storage process after game logic server process initiation to be connected.Look into whenever there being data During inquiry demand, will be connected by network and send inquiry request message to data storage process.
The network communication module (be equivalent to above-mentioned receiver module and set up module) of data storage process main thread is mainly born Network service is carried out between duty and game logic server process.Network communication module can come from game receiving After the inquiry request message of logical server process, the lua that the inquiry request message received is delivered to main thread is empty In plan machine.
The lua virtual machine of main thread is mainly responsible for triggering the operation of thread message dispatch module.
The Thread Messages of main thread distributes module (be equivalent to above-mentioned choose module and sending module) can be according to the group preset Send out rule (it can be set as distributing at random according to the actual requirements, naturally it is also possible to is set as fixing distributing, such as: A series of inquiry request messages are all sent to the same inquiry thread specified) inquiry request message received is sent out Deliver to the inquiry thread specified.
The data inquiry module (be equivalent to above-mentioned acquisition module and perform module) of inquiry thread is receiving inquiry request After message, it will performing corresponding data query operation, then, this inquiry thread enters thread block state, with etc. Pending data storehouse returns Query Result.After pending data successful inquiring, Query Result can be fed back to main thread by inquiry thread, Main thread is after receiving Query Result, then is connected by network by this Query Result and be sent to game logic server and enter Journey.
Fig. 8 is according to the preferred embodiment of the invention based on main thread specific works in the data storage threads shown in Fig. 7 The flow chart of process.As shown in Figure 8, this flow process can include following process step:
Step S801, main thread perform initialization operation to data storage process, and it mainly includes but not limited to: read The configuration information of data storage process, log system to storage operation note initialize.
Step S802, main thread perform initialization operation to network communication module, trigger network communication module monitored data Internet protocol (IP) address of storage process and designated port, prepare to receive what game logic server process was initiated Network connects.
Step S803, main thread are self to create lua virtual machine, and initialize the lua that lua virtual machine needs to use Functional module.
In the preferred embodiment, main thread can create a lua void by calling luaL_newstate function Plan machine.
Step S804, main thread perform initialization operation to thread management monitoring module, create multiple queries thread and open These inquiry threads created dynamic, wherein, thread management monitoring module has a thread pool, and it is responsible for The thread object being currently running.
Step S805, initially enter the major cycle of main thread, it may be judged whether the process of receiving exits signal, if it is, Then forward step S810 to;If it is not, then continue executing with step S806.
Step S806, Internet perform a message dispatch.
Specifically, reactor (reactor) pattern that the Internet of online game is typically implemented as in design pattern, often Secondary message dispatch may trigger some network events (such as: receive a network data), performs correspondence the most again Logic.
Step S807, main thread receive the data inquiry request message coming from game logic server process, according to The rule that distributes preset selects an inquiry thread to send the inquiry request message received to this inquiry thread.
In the preferred embodiment, distribute rule and can include but not limited to one below:
(1) fixing selection thread distributes rule, if needing to ensure the time sequencing of data query operation, then can make Distributing rule with this, it may insure that the data inquiry request first initiated first carries out (such as: for player's data Inquiry operation, if cannot ensure that the order of data query operation performs, it is more likely that player's data can be caused to occur different Often);
(2) randomly choose thread and distribute rule, this distribute rule in data query operation more frequently, it is usual Just can use, such as having no need to ensure that in the case of inquiry request message order performs: inquiry games log.
Inquiry request message is sent to the inquiry request message queue of given thread by step S808, main thread, due to line The inquiry request message queue of journey is the data that main thread is shared with this inquiry thread, therefore, needs to use operation herein The thread lock of system.Operating system function pthread_mutex_lock is used before amendment inquiry request message queue Lock, and after amendment completes, re-use operating system function pthread_mutex_unlock be unlocked.
Whether the detection Query Result queue of step S809, main thread exists Query Result, if it is present need to look into Ask result and be sent to Internet, and delete from Query Result queue, wherein, Query Result queue be also main thread and The data that inquiry thread is shared, therefore, the operation to this Query Result queue is also required to add thread lock.
The process that receives step S810, main thread exits signal (such as: when server needs to be serviced, by closing The script closing server processes sends), notify that all responsible inquiry threads performing inquiry operation exit, and wait all Exiting of thread.
Step S811, after confirming that all inquiry threads exit, main thread closes the lua virtual machine that himself creates.
Step S812, before main thread exits, main thread also needs to clear up whole process data.
Fig. 9 is performing based on the concrete of inquiry thread in the data storage threads shown in Fig. 7 of the preferred embodiment of the present invention The flow chart of process.As it is shown in figure 9, this flow process can include following process step:
Step S901, inquiry thread perform initialization operation to thread-data, and it mainly includes but not limited to: thread The initialization of query request, the initialization of thread lock of query request.
Step S902, inquiry thread perform initialization operation to multi-line range virtual machine.
Specifically, similar with the virtual machine initialization procedure of main thread, inquiry thread can call luaL_newstate One lua virtual machine of function creation, and initialization data storehouse driver (for data inquiry module).In order to Lua virtual machine internal can identify and self belong to which thread or process, needs the virtual machine overall situation at each thread Arranging the global variable of a Thread Id on table, such script layer just can realize thread certainly by accessing this variable I identifies.
Step S903, initially entering the major cycle of thread, whether inquiry thread cycle criterion receives from main thread Exit signal;If it is not, then continue executing with step S904;If it is, forward step S907 to.
Step S904, inquiry thread judge whether to read an inquiry from the inquiry request message queue of thread please Seek message, and from inquiry request message queue, delete this inquiry request message;If it is, continue executing with step S905;If inquiry request message queue is empty, then return step S904.
The inquiry request message queue being as noted previously, as inquiry thread is shared with main thread, therefore, at this Step operating process needs to add thread lock.
Step S905, inquiry thread perform the query logic corresponding with inquiry request message.
Above-mentioned inquiry request message both can be carried out a database query operations, such as: calls luasql and performs one Individual mysql statement, or, call mongorover and perform the inquiry of a mongodb;Can also be reading, write Enter file data, such as: write a daily record data;It is, of course, also possible to be carried out one section to central processing unit (CPU) The logical operations code that occupation rate is higher, owing to being not intended to cause the card of game logic process to pause, it is thereby possible to select Being transferred to data storage process utilizes multithreading to calculate.
Query Result is fed back to the Query Result queue of main thread by step S906, inquiry thread.
As it has been described above, the Query Result queue of main thread is the data shared with inquiry thread, therefore, the step for also Need to add thread lock.
It should be noted that step S904 will be returned after step S906 is finished, continue cycling through and judge whether Next inquiry request message can be read, if inquiry request message queue is empty, before returning step S903, In order to avoid the major cycle of CPU dry running at full capacity inquiry thread, need calling system dormancy function sleep dormancy one Circulation is continued executing with after the section time.
Step S907, inquiry thread receive the signal that host process exits, and close the lua virtual machine of inquiry thread.
Step S908, inquiry thread cleaning therein data (it includes but not limited to: inquiry request message queue Related data, the related data of query request thread lock), and exit thread.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment The part described in detail, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be passed through other Mode realize.Wherein, device embodiment described above is only schematically, the division of the most described unit, Can be that a kind of logic function divides, actual can have other dividing mode, the most multiple unit or assembly when realizing Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, institute The coupling each other shown or discuss or direct-coupling or communication connection can be by some interfaces, unit or mould The INDIRECT COUPLING of block or communication connection, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to On multiple unit.Some or all of unit therein can be selected according to the actual needs to realize the present embodiment scheme Purpose.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use, Can be stored in a computer read/write memory medium.Based on such understanding, technical scheme essence On the part that in other words prior art contributed or this technical scheme completely or partially can be with software product Form embodies, and this computer software product is stored in a storage medium, including some instructions with so that one Platform computer equipment (can be for personal computer, server or the network equipment etc.) performs each embodiment institute of the present invention State all or part of step of method.And aforesaid storage medium includes: USB flash disk, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD Etc. the various media that can store program code.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improve and profit Decorations also should be regarded as protection scope of the present invention.

Claims (24)

1. the processing method of an inquiry request message, it is characterised in that including:
Main thread receives the inquiry request message coming from game logic server process;
Described main thread chooses wherein one according to the request content of described inquiry request message from multiple queries thread Individual inquiry thread, wherein, described inquiry thread is used for the operation that complete independently is corresponding with described inquiry request message;
Described inquiry request message is sent to corresponding with the inquiry thread chosen first to preset and deposits by described main thread Storage area territory.
Method the most according to claim 1, it is characterised in that described main thread according to described request content from described Multiple queries thread is chosen one of them inquiry thread and includes one below:
If according to described request content, described main thread determines that described inquiry request message is looked into previously received Ask order relation in the presence of request message, then described main thread chooses execution and institute from the plurality of inquiry thread State the inquiry thread of inquiry operation corresponding to previously received inquiry request message as the described information trunk chosen Journey;
If according to described request content, described main thread determines that described inquiry request message is looked into previously received Ask order relation in the presence of asking message not, then described main thread randomly selects from the plurality of inquiry thread appoints One inquiry thread is as the described inquiry thread chosen.
Method the most according to claim 1, it is characterised in that described inquiry request message is sent out at described main thread Deliver to described first preset memory area before, also include:
Described main thread opens thread lock;And
After the transmission of described inquiry request message is preset memory area to described first by described main thread, also wrap Include:
Described main thread closes described thread lock.
Method the most according to claim 1, it is characterised in that described inquiry request message is sent out at described main thread After sending described first to preset memory area, also include:
Described main thread is preset memory area from corresponding with described main thread second and is obtained Query Result;
Described Query Result is back to described game logic server process by described main thread, and by described inquiry Result is preset memory area from described second and is deleted.
Method the most according to claim 4, it is characterised in that preset memory block from described second at described main thread Before territory obtains Query Result, also include:
Described main thread opens thread lock;And
At described main thread, described Query Result is back to described game logic server process, and looks into described Inquiry result is preset from described second after deleting memory area, also includes:
Described main thread closes thread lock.
Method the most according to claim 1, it is characterised in that described inquiry request message is sent out at described main thread After sending described first to preset memory area, also include:
Described main thread monitors the duty of the plurality of inquiry thread in real time;
The partly or entirely inquiry thread generation work in the plurality of inquiry thread being detected of the described main thread is different In the case of Chang, perform reboot operation to there is abnormal inquiry thread.
Method the most according to claim 1, it is characterised in that described inquiry request message is sent out at described main thread After sending described first to preset memory area, also include:
Described main thread is increased or decreased one according to current loading condition on the basis of the plurality of inquiry thread Individual or multiple queries thread.
Method the most according to claim 1, it is characterised in that described inquiry request message is sent out at described main thread After sending described first to preset memory area, also include:
Described main thread, in the case of getting and exiting signal, notifies that the plurality of inquiry thread performs to exit behaviour Make, wherein, described in exit signal for close inquiry service;
Described main thread, after the plurality of inquiry thread of wait is fully completed and exits operation, performs exiting of self Operation.
Method the most according to claim 1, it is characterised in that come from described game in the reception of described main thread and patrol Before collecting the described inquiry request message of server processes, also include:
The network that described main thread is set up between self with game logic server process is connected;
Described main thread creates the plurality of inquiry thread, and is respectively adopted different global identifiers to described many Each inquiry thread in individual inquiry thread makes a distinction.
10. the processing method of an inquiry request message, it is characterised in that including:
Inquiry thread presets acquisition inquiry request in memory area from first under the triggering of the virtual machine self created Message, wherein, described inquiry request message is to be received by main thread from game logic server process and forward Memory area is preset to described first;
Described inquiry thread performs the operation corresponding with described inquiry request message, and Query Result feeds back to the Two preset memory area, and wherein, described second presets memory area obtains described inquiry knot for described main thread Really.
11. methods according to claim 10, it is characterised in that described Query Result is fed back to described second pre- If after memory area, also include:
Described inquiry thread receive come from described main thread exit signal, wherein, described in exit signal for Close inquiry service;
Described inquiry thread is closed described virtual machine and clears up the data of therein.
12. methods according to claim 10, it is characterised in that the operation corresponding with described inquiry request message includes One below:
Database query operations;
Read or write file data operation;
The calculating operation corresponding with central processor CPU occupation rate.
The processing means of 13. 1 kinds of inquiry request messages, it is characterised in that described device is applied to main thread, including:
Receiver module, for receiving the inquiry request message coming from game logic server process;
Choose module, for choosing it according to the request content of described inquiry request message from multiple queries thread In one inquiry thread, wherein, described inquiry thread for complete independently corresponding with described inquiry request message Operation;
Sending module, pre-for described inquiry request message being sent extremely corresponding with the inquiry thread chosen first If memory area.
14. devices according to claim 13, it is characterised in that described in choose module, if for described main thread Determine that described inquiry request message and previously received inquiry request message exist sequential according to described request content Relation, then described main thread chooses execution and described previously received inquiry from the plurality of inquiry thread The inquiry thread of the inquiry operation that request message is corresponding is as the described inquiry thread chosen;Or, if described According to described request content, main thread determines that described inquiry request message is with previously received inquiry request message not In the presence of order relation, then described main thread randomly select from the plurality of inquiry thread any one inquiry thread As the described inquiry thread chosen.
15. devices according to claim 13, it is characterised in that described device also includes:
First opening module, is used for opening thread lock;And
First closes module, is used for closing described thread lock.
16. devices according to claim 13, it is characterised in that described device also includes:
Acquisition module, obtains Query Result for presetting memory area from corresponding with described main thread second;
Processing module, for being back to described game logic server process, and by described by described Query Result Query Result is preset memory area from described second and is deleted.
17. devices according to claim 16, it is characterised in that described device also includes:
Second opening module, is used for opening thread lock;And
Second closes module, is used for closing described thread lock.
18. devices according to claim 13, it is characterised in that described device also includes:
Monitoring module, for the duty of the plurality of inquiry thread of monitoring in real time;
Reset module, for the partly or entirely inquiry thread generation work in the plurality of inquiry thread being detected In the case of making extremely, perform reboot operation to there is abnormal inquiry thread.
19. devices according to claim 13, it is characterised in that described device also includes:
Adjusting module, adds deduct for increasing on the basis of the plurality of inquiry thread according to current loading condition Few one or more inquiry threads.
20. devices according to claim 13, it is characterised in that described device also includes:
Notification module, in the case of getting and exiting signal, notifies that the plurality of inquiry thread performs to move back Go out operation, wherein, described in exit signal for close inquiry service;
Exit module, after being fully completed exit operation at the plurality of inquiry thread of wait, perform self Exit operation.
21. devices according to claim 13, it is characterised in that described device also includes:
Set up module, be connected for the network set up between self with game logic server process;
Creation module, is used for creating the plurality of inquiry thread, and is respectively adopted different global identifiers to institute The each inquiry thread stated in multiple queries thread makes a distinction.
The processing means of 22. 1 kinds of inquiry request messages, it is characterised in that described device is applied to inquire about thread, including:
Acquisition module, under the triggering of the virtual machine created at self from first preset memory area in obtain and look into Asking request message, wherein, described inquiry request message is to be received from game logic server process by main thread And be forwarded to described first and preset memory area;
Perform module, for performing the operation corresponding with described inquiry request message, and Query Result is fed back to Second presets memory area, and wherein, described second presets memory area obtains described inquiry for described main thread Result.
23. devices according to claim 22, it is characterised in that described device also includes:
Receiver module, for receive come from described main thread exit signal, wherein, described in exit signal and use In closing inquiry service;
Close module, for closing described virtual machine and clearing up the data of therein.
24. devices according to claim 22, it is characterised in that the operation corresponding with described inquiry request message includes One below:
Database query operations;
Read or write file data operation;
The calculating operation corresponding with central processor CPU occupation rate.
CN201610315939.6A 2016-05-12 2016-05-12 method and device for processing query request message Active CN106021399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610315939.6A CN106021399B (en) 2016-05-12 2016-05-12 method and device for processing query request message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610315939.6A CN106021399B (en) 2016-05-12 2016-05-12 method and device for processing query request message

Publications (2)

Publication Number Publication Date
CN106021399A true CN106021399A (en) 2016-10-12
CN106021399B CN106021399B (en) 2019-12-06

Family

ID=57100322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610315939.6A Active CN106021399B (en) 2016-05-12 2016-05-12 method and device for processing query request message

Country Status (1)

Country Link
CN (1) CN106021399B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107213634A (en) * 2017-06-13 2017-09-29 北京凯罗天下科技有限公司 A kind of game user management method, game server and system
CN107562516A (en) * 2017-08-07 2018-01-09 北京金山安全管理系统技术有限公司 Multithread processing method and device, storage medium and processor
CN108279972A (en) * 2018-01-26 2018-07-13 郑州云海信息技术有限公司 A kind of LUA virtual machines task executing method and relevant apparatus
CN108881965A (en) * 2017-12-29 2018-11-23 北京视联动力国际信息技术有限公司 A kind of server processes operating method and device
CN109586989A (en) * 2017-09-28 2019-04-05 阿里巴巴集团控股有限公司 A kind of state detection method, device and group system
CN109660569A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 A kind of Multi-task Concurrency executes method, storage medium, equipment and system
CN109669979A (en) * 2018-12-18 2019-04-23 网易(杭州)网络有限公司 The processing method and processing device of data, storage medium
CN110347952A (en) * 2019-07-18 2019-10-18 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for opening the direct broadcasting room page
CN110532311A (en) * 2019-08-14 2019-12-03 泰安协同软件有限公司 A kind of distributed data deriving method and system based on queue
CN110555068A (en) * 2018-05-14 2019-12-10 北京京东尚科信息技术有限公司 Data export method and device
CN111274453A (en) * 2020-01-14 2020-06-12 北京市商汤科技开发有限公司 Data operation method, system, electronic device and computer readable storage medium
CN112214514A (en) * 2020-09-07 2021-01-12 广东省安心加科技有限公司 Method and device for inquiring real-time state of internet of things equipment and storage medium
CN113360525A (en) * 2021-08-10 2021-09-07 支付宝(杭州)信息技术有限公司 Query request processing method, device and equipment and key value query system
CN113360302A (en) * 2021-08-10 2021-09-07 成都市奇点软件有限公司 Method and system for time-consuming operation cancellation and blocking asynchronous conversion
CN114253694A (en) * 2022-02-25 2022-03-29 杭州雄迈集成电路技术股份有限公司 Asynchronous processing method and device based on neural network accelerator
CN114817187A (en) * 2021-01-19 2022-07-29 成都鼎桥通信技术有限公司 Log processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102810133A (en) * 2012-05-15 2012-12-05 北京像素软件科技股份有限公司 Ray query method for network game, and scene server
CN103197968A (en) * 2013-03-18 2013-07-10 焦点科技股份有限公司 Thread pool processing method and system capable of fusing synchronous and asynchronous features
CN103441937A (en) * 2013-08-21 2013-12-11 曙光信息产业(北京)有限公司 Sending method and receiving method of multicast data
CN103810223A (en) * 2012-11-15 2014-05-21 中国科学院软件研究所 Data grouping-based memory data organization query method
CN104572284A (en) * 2015-01-08 2015-04-29 盟游(北京)科技有限公司 Task implementation device and method and application
US20160070759A1 (en) * 2014-09-04 2016-03-10 Palo Alto Research Center Incorporated System And Method For Integrating Real-Time Query Engine And Database Platform
CN105426522A (en) * 2015-12-07 2016-03-23 浪潮(北京)电子信息产业有限公司 File system performance statistical method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102810133A (en) * 2012-05-15 2012-12-05 北京像素软件科技股份有限公司 Ray query method for network game, and scene server
CN103810223A (en) * 2012-11-15 2014-05-21 中国科学院软件研究所 Data grouping-based memory data organization query method
CN103197968A (en) * 2013-03-18 2013-07-10 焦点科技股份有限公司 Thread pool processing method and system capable of fusing synchronous and asynchronous features
CN103441937A (en) * 2013-08-21 2013-12-11 曙光信息产业(北京)有限公司 Sending method and receiving method of multicast data
US20160070759A1 (en) * 2014-09-04 2016-03-10 Palo Alto Research Center Incorporated System And Method For Integrating Real-Time Query Engine And Database Platform
CN104572284A (en) * 2015-01-08 2015-04-29 盟游(北京)科技有限公司 Task implementation device and method and application
CN105426522A (en) * 2015-12-07 2016-03-23 浪潮(北京)电子信息产业有限公司 File system performance statistical method and system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107213634A (en) * 2017-06-13 2017-09-29 北京凯罗天下科技有限公司 A kind of game user management method, game server and system
CN107213634B (en) * 2017-06-13 2020-07-07 北京凯罗天下科技有限公司 Game user management method, game server and system
CN107562516A (en) * 2017-08-07 2018-01-09 北京金山安全管理系统技术有限公司 Multithread processing method and device, storage medium and processor
CN109586989A (en) * 2017-09-28 2019-04-05 阿里巴巴集团控股有限公司 A kind of state detection method, device and group system
CN109660569A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 A kind of Multi-task Concurrency executes method, storage medium, equipment and system
CN108881965A (en) * 2017-12-29 2018-11-23 北京视联动力国际信息技术有限公司 A kind of server processes operating method and device
CN108279972A (en) * 2018-01-26 2018-07-13 郑州云海信息技术有限公司 A kind of LUA virtual machines task executing method and relevant apparatus
CN110555068A (en) * 2018-05-14 2019-12-10 北京京东尚科信息技术有限公司 Data export method and device
CN109669979A (en) * 2018-12-18 2019-04-23 网易(杭州)网络有限公司 The processing method and processing device of data, storage medium
CN110347952A (en) * 2019-07-18 2019-10-18 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for opening the direct broadcasting room page
CN110532311B (en) * 2019-08-14 2023-11-28 泰安协同软件有限公司 Distributed data export method and system based on queues
CN110532311A (en) * 2019-08-14 2019-12-03 泰安协同软件有限公司 A kind of distributed data deriving method and system based on queue
CN111274453A (en) * 2020-01-14 2020-06-12 北京市商汤科技开发有限公司 Data operation method, system, electronic device and computer readable storage medium
CN112214514A (en) * 2020-09-07 2021-01-12 广东省安心加科技有限公司 Method and device for inquiring real-time state of internet of things equipment and storage medium
CN114817187A (en) * 2021-01-19 2022-07-29 成都鼎桥通信技术有限公司 Log processing method and device
CN113360525A (en) * 2021-08-10 2021-09-07 支付宝(杭州)信息技术有限公司 Query request processing method, device and equipment and key value query system
CN113360302A (en) * 2021-08-10 2021-09-07 成都市奇点软件有限公司 Method and system for time-consuming operation cancellation and blocking asynchronous conversion
CN113360302B (en) * 2021-08-10 2021-10-29 成都市奇点软件有限公司 Method and system for time-consuming operation cancellation and blocking asynchronous conversion
CN113360525B (en) * 2021-08-10 2021-12-07 支付宝(杭州)信息技术有限公司 Query request processing method, device and equipment and key value query system
CN114253694A (en) * 2022-02-25 2022-03-29 杭州雄迈集成电路技术股份有限公司 Asynchronous processing method and device based on neural network accelerator

Also Published As

Publication number Publication date
CN106021399B (en) 2019-12-06

Similar Documents

Publication Publication Date Title
CN106021399A (en) Query request message processing method and apparatus
US7979862B2 (en) System and method for replacing an inoperable master workload management process
CN102739435B (en) Failure detection and recovery as service
CN102402458B (en) Virtual machine and/or multi-level scheduling support on systems with asymmetric processor cores
US5448631A (en) Apparatus for handling features in a telephone network
US8032780B2 (en) Virtualization based high availability cluster system and method for managing failure in virtualization based high availability cluster system
US6418464B1 (en) Method and apparatus for coordination of client/server processes
JP2005512190A (en) Real composite objects that provide high availability of resources in networked systems
CN109558218A (en) A kind of distributed service data lock implementation method based on Redis
CN109445802A (en) The method of privatization Paas platform and its publication application based on container
CN110888719A (en) Distributed task scheduling system and method based on web service
JP2000339287A (en) Concentrated affinity maintenance device and method therefor in client/server.data processing system managed by work load
US20020188765A1 (en) System and method for dynamic self-determining asynchronous event-driven computation
CN103580883B (en) A kind of business disaster recovery method and system
CN109968352A (en) A kind of robot control method and robot, the device with store function
CN107423942B (en) Service transfer method and device
CN103765387A (en) Distributed resource management in a portable computing device
US20190294466A1 (en) Network-accessible volume creation and leasing
CN112491980B (en) Cloud host service management method, system, terminal and storage medium
CN109918187A (en) Method for scheduling task, device, equipment and storage medium
CN101770393B (en) Applet component model and application method thereof
CN111459626A (en) Method and device for realizing non-branching seamless game world
CN109347661A (en) The instantiation method and device of consumer VNF
CN107766707B (en) Method and apparatus for responding to user request in application container engine
CN104598810A (en) Method and equipment for realizing safe use of intelligent terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant