CN106201667B - User instruction queue management system and method - Google Patents
User instruction queue management system and method Download PDFInfo
- Publication number
- CN106201667B CN106201667B CN201610499183.5A CN201610499183A CN106201667B CN 106201667 B CN106201667 B CN 106201667B CN 201610499183 A CN201610499183 A CN 201610499183A CN 106201667 B CN106201667 B CN 106201667B
- Authority
- CN
- China
- Prior art keywords
- queue
- module
- user instruction
- queue process
- user
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Retry When Errors Occur (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a user instruction queue management system, which relates to the field of user instruction management and comprises an instruction receiving and storing module, a queue management module and a queue process module, wherein: the instruction receiving and storing module is used for storing user instructions; the queue management module is used for inquiring the number of the user instructions in the instruction receiving and storing module and starting queue processes corresponding to the user instructions one by one; the queue process module is used for searching a user instruction corresponding to the queue process in the instruction receiving and storing module and immediately executing the user instruction by using the queue process. In the invention, after the user sends the user instruction, the user does not need to wait for the feedback of the completion of the instruction execution, and immediately receives the notification of successful joining in the queue management system, and the queue executes the user instruction and feeds back the state. The user can not feel the time consumed by executing the user instruction, and the user experience is improved. The invention discloses a user instruction queue management method.
Description
Technical Field
The invention relates to the field of user instruction management, in particular to a user instruction queue management system and a user instruction queue management method.
Background
When a computer or intelligent equipment user processes time-consuming commands such as sending short messages and sending mails, the user needs to wait for the background to finish executing the user command after sending the user command, and then feedback that the short messages are sent or the mails are sent can be obtained. Waiting for a period of time from the user issuing the instruction to receiving the feedback results in poor user experience.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a user instruction queue management system and a user instruction queue management method, so that a user cannot feel the time consumed by executing a user instruction, and the user experience is improved.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows: a user instruction queue management system: the user instruction queue management system is used for immediately sending feedback of completion of execution after receiving a user instruction, and immediately executing the user instruction by using a queue process through the queue process module, wherein: the instruction receiving and storing module is used for receiving and storing a user instruction and returning the user instruction to be successfully added into the queue management system; the queue management module is used for inquiring the number of the user instructions in the instruction receiving and storing module and starting queue processes corresponding to the user instructions one by one; the queue process module is used for searching a user instruction corresponding to the queue process in the instruction receiving and storing module and immediately executing the user instruction by using the queue process.
On the basis of the scheme, the queue process module uses the queue process to execute the user instruction overtime, the queue process retries to execute the user instruction, if the user instruction is still overtime after 5 retries, the queue management module closes the queue process corresponding to the user instruction and records the running log of the queue process.
On the basis of the scheme, the queue process module uses the queue process to execute the user instruction, the queue management module restarts the queue process corresponding to the user instruction with abnormal execution and records the running log of the queue process.
On the basis of the scheme, after the queue process module finishes executing the user instruction by using the queue process, the queue management module closes the queue process corresponding to the user instruction which is successfully executed, and records a queue process running log.
The invention also discloses a user instruction queue management method, wherein the instruction receiving and storing module adds the user instructions into the instruction receiving and storing module and returns the user instructions to successfully join the queue management system, and the queue management module inquires the number of the user instructions in the instruction receiving and storing module and starts queue processes corresponding to the user instructions one by one; and the queue process module searches for a user instruction corresponding to the queue process in the instruction receiving and storing module, and immediately executes the user instruction by using the queue process.
On the basis of the scheme, in the process that the queue process module executes the user instruction by using the queue process, if the execution is overtime, the queue process retries to execute the user instruction, if the execution is still overtime after 5 retries, the queue management module closes the queue process and records a running log of the queue process.
On the basis of the scheme, in the process that the queue process module executes the user instruction by using the queue process, if the user instruction execution is abnormal, the queue management module restarts the queue process and records a queue process running log.
On the basis of the scheme, after the queue process module uses the queue process to execute the user instruction, the queue management module closes the queue process and records the running log of the queue process.
On the basis of the scheme, the method comprises the following steps:
s1, the instruction receiving and storing module adds the user instruction into the instruction receiving and storing module and returns the user instruction to be successfully added into the queue management system;
s2, the queue process module inquires the number of the user instructions in the instruction receiving and storing module and starts the queue process corresponding to the user instructions one by one;
s3, the queue process module receives the user command in the storage module by using the queue process searching command, if the user command corresponding to the queue process is searched, the step S4 is entered, and if the user command is not searched, the step S3 is repeated;
s4, the queue process module uses the queue process to execute the user command immediately; if the timeout is executed, the step S4 is repeated; if the retry is still overtime for 5 times, the process proceeds to step S5, and if not, the process proceeds to step S6;
s5, the queue process module closes the queue process, records the running log of the queue process and ends;
s6, if abnormal execution occurs, go to step S7; if no exception occurs during execution, go to step S8;
s7, restarting the queue process by the queue process module, recording the running log of the queue process, and ending;
and S8, the queue process module closes the queue process, records the running log of the queue process and ends.
Compared with the prior art, the invention has the advantages that:
1. after the user sends the user instruction, the feedback of the completion of the execution is obtained immediately, meanwhile, the user instruction is executed by the queue, the user cannot feel the time consumed by the execution of the user instruction, and the user experience is improved.
2. And corresponding processing is carried out on different results of the queue process in time, and a log is recorded for recording the real execution state of the user instruction.
Drawings
FIG. 1 is a diagram illustrating a structure of a user command queue management system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for managing a user command queue according to an embodiment of the present invention.
In the figure: 1-instruction receiving and storing module, 2-queue management module and 3-queue process module.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1, an embodiment of the present invention provides a user instruction queue management system, including an instruction receiving storage module 1, a queue management module 2, and a queue process module 3, where: the instruction receiving and storing module 1 is used for receiving and storing a user instruction and returning the user instruction to be successfully added into the queue management system; the queue management module 2 is used for inquiring the number of the user instructions in the instruction receiving and storing module 1 and starting queue processes corresponding to the user instructions one by one; the queue process module 3 is configured to search for a user instruction corresponding to the queue process in the instruction receiving storage module 1, and immediately execute the user instruction using the queue process. After the user sends the user instruction, the feedback of the completion of the execution is obtained immediately, meanwhile, the user instruction is executed by the queue, the user cannot feel the time consumed by the execution of the user instruction, and the user experience is improved.
The queue process module 3 uses the queue process to execute the user instruction, the queue process retries to execute the user instruction, if the user instruction is still overtime after 5 retries, the queue management module 2 closes the queue process corresponding to the user instruction, and records the running log of the queue process. The queue process module 3 uses the queue process to execute the user instruction, and the queue management module 2 restarts the queue process corresponding to the user instruction, and records the running log of the queue process. The queue process module 3 finishes the user instruction by using the queue process, and the queue management module 2 closes the queue process corresponding to the user instruction which is successfully executed, and records the running log of the queue process. And corresponding processing is carried out on different results of the queue process in time, and a queue process running log is recorded for recording the real execution state of the user instruction.
The invention also discloses a queue management method based on the user instruction queue management system, wherein the instruction receiving and storing module 1 adds the user instruction into the instruction receiving and storing module 1 and returns the user instruction to successfully join the queue management system, and the queue management module 2 inquires the number of the user instructions in the instruction receiving and storing module 1 and starts queue processes corresponding to the user instructions one by one; the queue process module 3 searches for a user instruction corresponding to the queue process in the instruction reception storage module 1, and immediately executes the user instruction using the queue process. In the process that the queue process module 3 executes the user instruction by using the queue process, if the execution is overtime, the queue process retries to execute the user instruction, if the execution is still overtime after 5 retries, the queue management module 2 closes the queue process, and records the running log of the queue process. In the process that the queue process module 3 executes the user instruction by using the queue process, if the user instruction execution is abnormal, the queue management module 2 restarts the queue process and records the running log of the queue process. After the queue process module 3 finishes executing the user instruction by using the queue process, the queue management module 2 closes the queue process and records the running log of the queue process.
The method specifically comprises the following steps:
s1, the instruction receiving and storing module 1 adds the user instruction into the instruction receiving and storing module 1 and returns the user instruction to be successfully added into the queue management system;
s2, the queue process module 3 inquires the number of the user instructions in the instruction receiving and storing module 1 and starts the queue process corresponding to the user instructions one by one;
s3, the queue process module 3 uses the queue process search instruction to receive the user instruction in the storage module 1, if the user instruction corresponding to the queue process is found, the step S4 is entered, and if the user instruction is not found, the step S3 is repeated;
s4, the queue process module 3 uses the queue process to immediately execute the user instruction; if the timeout is executed, the step S4 is repeated; if the retry is still overtime for 5 times, the process proceeds to step S5, and if not, the process proceeds to step S6;
s5, the queue process module 3 closes the queue process, records the running log of the queue process and ends;
s6, if abnormal execution occurs, go to step S7; if no exception occurs during execution, go to step S8;
s7, the queue process module 3 restarts the queue process, records the running log of the queue process and ends;
and S8, closing the queue process by the queue process module 3, recording the running log of the queue process, and ending.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.
Claims (2)
1. A user instruction queue management system, characterized by: the system comprises an instruction receiving and storing module (1), a queue management module (2) and a queue process module (3), wherein the user instruction queue management system is used for immediately sending feedback of completed execution after receiving a user instruction, and immediately executing the user instruction by using a queue process through the queue process module (3), wherein:
the instruction receiving and storing module (1) is used for receiving and storing a user instruction and returning the user instruction to be successfully added into the queue management system;
the queue management module (2) is used for inquiring the number of the user instructions in the instruction receiving and storing module (1) and starting queue processes corresponding to the user instructions one by one;
the queue process module (3) is used for searching a user instruction corresponding to the queue process in the instruction receiving and storing module (1) and immediately executing the user instruction by using the queue process;
the queue process module (3) uses the queue process to execute the user instruction overtime, the queue process retries to execute the user instruction, if the user instruction is still overtime after 5 retries, the queue management module (2) closes the queue process corresponding to the user instruction and records the running log of the queue process;
the queue process module (3) uses the queue process to execute the user instruction, and the queue management module (2) restarts the queue process corresponding to the user instruction, and records the running log of the queue process;
after the queue process module (3) finishes executing the user instruction by using the queue process, the queue management module (2) closes the queue process corresponding to the user instruction which is successfully executed, and records the running log of the queue process.
2. A queue management method based on the system of claim 1, characterized in that:
the method comprises the following steps:
s1, the instruction receiving and storing module (1) adds the user instruction into the instruction receiving and storing module (1) and returns the user instruction to successfully join the queue management system;
s2, the queue process module (3) inquires the number of the user instructions in the instruction receiving and storing module (1) and starts the queue processes corresponding to the user instructions one by one;
s3, the queue process module (3) uses the queue process search instruction to receive the user instruction in the storage module (1), if the user instruction corresponding to the queue process is found, the step S4 is carried out, and if the user instruction is not found, the step S3 is repeated;
s4, the queue process module (3) uses the queue process to immediately execute the user instruction; if the timeout is executed, the step S4 is repeated; if the retry is still overtime for 5 times, the process proceeds to step S5, and if not, the process proceeds to step S6;
s5, the queue process module (3) closes the queue process, records the running log of the queue process and ends;
s6, if abnormal execution occurs, go to step S7; if no exception occurs during execution, go to step S8;
s7, the queue process module (3) restarts the queue process, records the running log of the queue process and ends;
and S8, closing the queue process by the queue process module (3), recording the running log of the queue process, and ending.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610499183.5A CN106201667B (en) | 2016-06-29 | 2016-06-29 | User instruction queue management system and method |
PCT/CN2017/080775 WO2018000908A1 (en) | 2016-06-29 | 2017-04-17 | User instruction queue management system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610499183.5A CN106201667B (en) | 2016-06-29 | 2016-06-29 | User instruction queue management system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106201667A CN106201667A (en) | 2016-12-07 |
CN106201667B true CN106201667B (en) | 2020-02-04 |
Family
ID=57463324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610499183.5A Active CN106201667B (en) | 2016-06-29 | 2016-06-29 | User instruction queue management system and method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106201667B (en) |
WO (1) | WO2018000908A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201667B (en) * | 2016-06-29 | 2020-02-04 | 武汉斗鱼网络科技有限公司 | User instruction queue management system and method |
CN109921967B (en) * | 2019-03-08 | 2021-05-07 | 美智光电科技股份有限公司 | Instruction processing method and system, gateway device and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702735A (en) * | 2009-11-24 | 2010-05-05 | 恒生电子股份有限公司 | TCP service device and method |
CN101916224A (en) * | 2010-08-20 | 2010-12-15 | 迈普通信技术股份有限公司 | Test progress abnormality detection method and automatic test control device |
CN102932387A (en) * | 2011-08-10 | 2013-02-13 | 北大方正集团有限公司 | Equipment operation maintenance method and device |
CN103888407A (en) * | 2012-12-24 | 2014-06-25 | 于智为 | Solution method of controlling multiple terminals by intelligent household core server |
CN104360899A (en) * | 2014-11-03 | 2015-02-18 | 上海斐讯数据通信技术有限公司 | Process management system and management method |
CN105404557A (en) * | 2015-12-07 | 2016-03-16 | 中国电子科技集团公司第五十研究所 | Interprocess communication method based on message queue |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8959530B1 (en) * | 2013-05-07 | 2015-02-17 | Sprint Communications Company L.P. | Messaging middleware processing thread count based events |
US9727364B2 (en) * | 2014-09-05 | 2017-08-08 | Red Hat Israel, Ltd. | Virtual device hypervisor memory limited receive queuing |
CN106201667B (en) * | 2016-06-29 | 2020-02-04 | 武汉斗鱼网络科技有限公司 | User instruction queue management system and method |
-
2016
- 2016-06-29 CN CN201610499183.5A patent/CN106201667B/en active Active
-
2017
- 2017-04-17 WO PCT/CN2017/080775 patent/WO2018000908A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702735A (en) * | 2009-11-24 | 2010-05-05 | 恒生电子股份有限公司 | TCP service device and method |
CN101916224A (en) * | 2010-08-20 | 2010-12-15 | 迈普通信技术股份有限公司 | Test progress abnormality detection method and automatic test control device |
CN102932387A (en) * | 2011-08-10 | 2013-02-13 | 北大方正集团有限公司 | Equipment operation maintenance method and device |
CN103888407A (en) * | 2012-12-24 | 2014-06-25 | 于智为 | Solution method of controlling multiple terminals by intelligent household core server |
CN104360899A (en) * | 2014-11-03 | 2015-02-18 | 上海斐讯数据通信技术有限公司 | Process management system and management method |
CN105404557A (en) * | 2015-12-07 | 2016-03-16 | 中国电子科技集团公司第五十研究所 | Interprocess communication method based on message queue |
Also Published As
Publication number | Publication date |
---|---|
CN106201667A (en) | 2016-12-07 |
WO2018000908A1 (en) | 2018-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110716793B (en) | Method, device, equipment and storage medium for executing distributed transaction | |
CN101388038B (en) | Method and device for executing data decimation, conversion and load | |
CN112118128B (en) | Rapid identification method and recovery method for online executive fault | |
JP2014505958A5 (en) | ||
CN106201667B (en) | User instruction queue management system and method | |
CN107092602B (en) | Automatic response method and system | |
CN106844092B (en) | Method for automatically recovering MariaDB Galera Cluster of power failure | |
WO2017041639A1 (en) | Database operating method and device | |
US11004445B2 (en) | Information processing method, server, terminal, and information processing system | |
WO2018149396A1 (en) | Service flow processing method and apparatus, readable storage medium and terminal device | |
EP3226153B1 (en) | Impact analysis-based task redoing method, impact analysis calculation apparatus and one-click reset apparatus | |
CN105897309A (en) | Intelligent device matching device and intelligent device | |
CN110737585A (en) | UI (user interface) automatic test case and system and page element loading waiting method and system | |
CN105630664B (en) | Reverse debugging method and device and debugger | |
CN103377292B (en) | Database result set caching method and device | |
CN106874343B (en) | Data deletion method and system for time sequence database | |
KR101424568B1 (en) | Client and database server for resumable transaction and method thereof | |
US9880923B2 (en) | Model checking device for distributed environment model, model checking method for distributed environment model, and medium | |
CN110109837B (en) | Integrated test method, integrated test device, controller and medium | |
CN103647914A (en) | Method and device for timed wake-up after television turning-off | |
CN116701063A (en) | Persistence method, device and system for internal memory state data for data language of digital networking | |
CN103488549B (en) | Roll-back processing system and roll-back processing method for multi-mirror-image data | |
CN109032940B (en) | Test scene input method, device, equipment and storage medium | |
CN108334384B (en) | 4G module management method based on state machine | |
CN103150365A (en) | Method and equipment for performing fuzzy search by using background system of bank |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230726 Address after: Floor 11, Shenghua Building, Guangtian Group, No. 2098, Shennan East Road, Dongmen Street, Luohu District, Shenzhen, Guangdong 518000 Patentee after: Shenzhen Grandland Yunwanjia Technology Co.,Ltd. Address before: 430000 Wuhan Donghu Development Zone, Wuhan, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |