WO2018176177A1 - 一种解决采集数据类软件关闭速度慢的方法 - Google Patents
一种解决采集数据类软件关闭速度慢的方法 Download PDFInfo
- Publication number
- WO2018176177A1 WO2018176177A1 PCT/CN2017/000274 CN2017000274W WO2018176177A1 WO 2018176177 A1 WO2018176177 A1 WO 2018176177A1 CN 2017000274 W CN2017000274 W CN 2017000274W WO 2018176177 A1 WO2018176177 A1 WO 2018176177A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- software
- data
- service process
- background service
- data collection
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Definitions
- the present invention relates to the field of computer applications, and in particular, to a method for solving the slow shutdown speed of software for collecting data.
- the data is generally uploaded to the server after the software is closed.
- the acquisition software needs to wait for a period of time to exit, in the case of the interface. This can seriously affect the user experience.
- the shutdown speed will become slower and slower.
- the general technical solution is to add one or more threads, and there are threads to upload data.
- the thread method can improve the upload speed to a certain extent, but Since the main program still needs to wait for the thread to complete before it can exit. In fact, the effect is not very good when the amount of data is large.
- the invention provides a method for solving the slow closing speed of the software for collecting data, and solves the problem that the closing speed of the software with the interface collection is slow.
- the present invention provides a method for solving the slow shutdown speed of the collected data type software, comprising the following steps:
- the collecting data software transmits the collected data to the background service process through the communication interface
- the collected data software stops running immediately, and the background service process uploads the received data collected by the collected data software to the server.
- the background service process automatically runs in the background of the system.
- the invention introduces a background service process for uploading data, and establishes a communication interface between the data collection software and the background service process, so that the original collected data type software is only responsible for collecting data, and the collected data is transmitted to the communication interface.
- the background service process the background service process uploads the received data to the server.
- the technical solution of the present invention has a flow of local process communication, but since the time of general local inter-process communication is relatively negligible relative to the speed of network communication, the overall adjustment is The data collection software only needs to do the two things of collecting and transmitting data to the background service process.
- the user can obviously feel that the click-to-close button software is immediately closed; at the same time, the background service process generally has no interface, and the following system Run and run, the system cpu may take up more when uploading data, but the background service will not occupy the cpu at other times when the data is not uploaded, which is non-perceived to the user, thus solving the general interface
- the problem of slow shutdown of the collection software improves the user experience.
- FIG. 1 is a flowchart of a method for solving a slow shutdown speed of an acquisition data type software according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a method for solving a slow shutdown speed of an acquisition data type software according to an embodiment of the present invention; as shown in the figure, a method for solving a slow shutdown speed of an acquisition data type software includes the following steps:
- S110 Establish a background service process, and establish a communication interface between the background service process and the collected data software with the interface, where the background service process is used to upload data received from the collected data software to the server;
- the collected data software transmits the collected data to the background service process through the communication interface.
- the invention introduces a background service process for uploading data, and establishes a communication interface between the data collection software and the background service process, so that the original collected data type software is only responsible for collecting data, and the collected data is transmitted to the communication interface.
- the background service process the background service process uploads the received data to the server.
- the technical solution of the present invention has a flow of local process communication, but since the time of general local inter-process communication is relatively negligible relative to the speed of network communication, the overall adjustment is
- the data collection software only needs to collect and transfer data to the background service process. The user can obviously feel that the software is closed when the button is closed.
- the background service process generally has no interface and follows the system.
- the system cpu While running, the system cpu may take up more when uploading data, but the background service will not occupy the cpu at other times when the data is not uploaded, which is non-perceived to the user, thus solving the general interface collection.
- the problem of slow shutdown of the software is to improve the user experience.
- the background service process automatically runs in the background of the system.
- the data collection software continuously collects relevant data and transmits the data to the background service process. During a certain time interval, the background service process uploads the received data to the server.
- modules in the devices in the embodiments may be distributed in the devices of the embodiments according to the embodiments, or may be correspondingly changed in one or more devices different from the embodiment.
- the modules of the above embodiments may be combined into one module, or may be further split into multiple sub-modules.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
一种解决采集数据类软件关闭速度慢的方法,包括以下步骤:建立一个后台服务进程,并在所述后台服务进程与带界面的采集数据软件之间建立一个通信接口,所述后台服务进程用于将接收自所述采集数据软件的数据上传至服务器(S110);所述采集数据软件将采集的数据通过所述通信接口传递给所述后台服务进程(S120);当用户点击所述采集数据软件界面的关闭按钮时,所述采集数据软件即时停止运行,所述后台服务进程将接收的、来自所述采集数据软件采集的数据上传至服务器(S130)。
Description
本发明涉及计算机应用领域,具体而言,涉及一种解决采集数据类软件关闭速度慢的方法。
采集软件在采集数据后一般都是在关闭软件后上传数据到服务器,在数据量比较大时,或者网速比较慢时,采集软件就需要等一段时间进程才能退出,在有带界面的情况下这样会严重的影响用户体验。随着采集数据量的增大,关闭速度就会越来越慢,一般的技术解决方案是增加一个或多个线程,有线程去上传数据,采用线程的方法一定程度上可以提高上传速度,但是由于主程序还是需要等待线程完成才能退出。实际上在数据量大时效果也不是很理想。
发明内容
本发明提供一种解决采集数据类软件关闭速度慢的方法,用以解决一般带界面采集类软件的关闭速度慢的问题。
为达到上述目的,本发明提供了一种解决采集数据类软件关闭速度慢的方法,包括以下步骤:
建立一个后台服务进程,并在所述后台服务进程与带界面的采集数据软件之间建立一个通信接口,所述后台服务进程用于将接收自所述采集数据软件的数据上传至服务器;
所述采集数据软件将采集的数据通过所述通信接口传递给所述后台服务进程;
当用户点击所述采集数据软件界面的关闭按钮时,所述采集数据软件即时停止运行,所述后台服务进程将接收的、来自所述采集数据软件采集的数据上传至服务器。
进一步地,当用户启动操作系统时,所述后台服务进程自动在系统后台运行。
进一步地,当用户打开所述采集数据软件时,自动开启和所述后台服务进程的通信连接。
本发明通过引入一个后台服务进程用于上传数据,在采集数据软件与后台服务进程之间建立一个通信接口,这样原有的采集数据类软件只负责采集数据,通过通信接口把采集的数据传递给后台服务进程,后台服务进程把接收到的采集数据上传到服务器。与现有技术相比,本发明的技术方案中多了一个本地进程通信的流程,但由于一般本地进程间通信相对于网络通信的速度来说时间基本是可以忽略的,这样调整后总体上原有的数据采集类软件只需做采集和传递数据到后台服务进程这两个事情,用户可以明显感觉到一点击关闭按钮软件马上就关闭了;同时,后台服务进程一般是不带界面的,跟随系统运行而运行,在上传数据的时候系统cpu可能会占用大一些,但是在不上传数据的其他时间后台服务进行也不会去占用cpu,对用户来说是无感知的,从而解决了一般带界面采集类软件的关闭速度慢的问题,提升了用户体验。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明一个实施例的解决采集数据类软件关闭速度慢的方法流程图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为本发明一个实施例的解决采集数据类软件关闭速度慢的方法流程图;如图所示,解决采集数据类软件关闭速度慢的方法包括以下步骤:
S110,建立一个后台服务进程,并在所述后台服务进程与带界面的采集数据软件之间建立一个通信接口,所述后台服务进程用于将接收自所述采集数据软件的数据上传至服务器;
S120,所述采集数据软件将采集的数据通过所述通信接口传递给所述后台服务进程;
S130,当用户点击所述采集数据软件界面的关闭按钮时,所述采集数据软件即时停止运行,所述后台服务进程将接收的、来自所述采集数据软件采集的数据上传至服务器。
本发明通过引入一个后台服务进程用于上传数据,在采集数据软件与后台服务进程之间建立一个通信接口,这样原有的采集数据类软件只负责采集数据,通过通信接口把采集的数据传递给后台服务进程,后台服务进程把接收到的采集数据上传到服务器。与现有技术相比,本发明的技术方案中多了一个本地进程通信的流程,但由于一般本地进程间通信相对于网络通信的速度来说时间基本是可以忽略的,这样调整后总体上原有的数据采集类软件只需做采集和传递数据到后台服务进程这两个事情,用户可以明显感觉到一点击关闭按钮软件就关闭了;同时,后台服务进程一般是不带界面的,跟随系统运行而运行,在上传数据的时候系统cpu可能会占用大一些,但是在不上传数据的其他时间后台服务进行也不会去占用cpu,对用户来说是无感知的,从而解决了一般带界面采集类软件的关闭速度慢的问题,提升了用户体验。
进一步地,当用户启动操作系统时,后台服务进程自动在系统后台运行。
进一步地,当用户打开所述采集数据软件时,自动开启和所述后台服务进程的通信连接。
以下为本发明一个具体实施例的流程:
【1】建立一个后台服务进程;
【2】将原带界面的采集软件中的上传采集数据的代码转移到后台服务进程,原带界面的采集软件只做采集,不做上传的工作;
【3】在带界面采集软件和后台服务进程之间建立起一种进程间通信机制;
【4】采集数据软件不断地采集相关数据,同时将数据传输给后台服务进程,在一定的时间片间隔内,后台服务进程将接收到的数据上传至服务器。
【5】当用户点击采集数据软件界面的关闭按钮时,采集数据软件马上停止运行,后台服务进程将未上传到服务器的数据继续上传至服务器。
本领域普通技术人员可以理解:附图只是一个实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。
本领域普通技术人员可以理解:实施例中的装置中的模块可以按照实施例描述分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。
Claims (3)
- 一种解决采集数据类软件关闭速度慢的方法,其特征在于,包括以下步骤:建立一个后台服务进程,并在所述后台服务进程与带界面的采集数据软件之间建立一个通信接口,所述后台服务进程用于将接收自所述采集数据软件的数据上传至服务器;所述采集数据软件将采集的数据通过所述通信接口传递给所述后台服务进程;当用户点击所述采集数据软件界面的关闭按钮时,所述采集数据软件即时停止运行,所述后台服务进程将接收的、来自所述采集数据软件采集的数据上传至服务器。
- 根据权利要求1所述的解决采集数据类软件关闭速度慢的方法,其特征在于,当用户启动操作系统时,所述后台服务进程自动在系统后台运行。
- 根据权利要求1所述的解决采集数据类软件关闭速度慢的方法,其特征在于,当用户打开所述采集数据软件时,自动开启和所述后台服务进程的通信连接。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US16/490,427 US20200028889A1 (en) | 2017-04-01 | 2017-04-01 | Method for resolving problem of slow shutdown speed of data collection software |
| PCT/CN2017/000274 WO2018176177A1 (zh) | 2017-04-01 | 2017-04-01 | 一种解决采集数据类软件关闭速度慢的方法 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/000274 WO2018176177A1 (zh) | 2017-04-01 | 2017-04-01 | 一种解决采集数据类软件关闭速度慢的方法 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018176177A1 true WO2018176177A1 (zh) | 2018-10-04 |
Family
ID=63674017
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/000274 Ceased WO2018176177A1 (zh) | 2017-04-01 | 2017-04-01 | 一种解决采集数据类软件关闭速度慢的方法 |
Country Status (2)
| Country | Link |
|---|---|
| US (1) | US20200028889A1 (zh) |
| WO (1) | WO2018176177A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102117473A (zh) * | 2010-01-05 | 2011-07-06 | 张国才 | 一种图文兼备的抄表管理系统 |
| CN102231077A (zh) * | 2011-07-06 | 2011-11-02 | 卢民 | 一种安全实时监控预警系统及监控预警方法 |
| CN102708111A (zh) * | 2012-01-16 | 2012-10-03 | 陈晓亮 | 一种群体用户自身指数展示系统及方法 |
| CN103064590A (zh) * | 2012-12-25 | 2013-04-24 | 天津三星通信技术研究有限公司 | 一种关闭移动终端运行程序的控制方法及系统 |
| CN107229485A (zh) * | 2016-03-23 | 2017-10-03 | 福建福昕软件开发股份有限公司 | 一种解决采集数据类软件关闭速度慢的方法 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8412836B2 (en) * | 2010-07-07 | 2013-04-02 | Microsoft Corporation | User authentication across multiple network stacks |
| US8663018B2 (en) * | 2011-06-29 | 2014-03-04 | Amazon Technologies, Inc. | Data locker synchronization |
| US9405654B2 (en) * | 2013-06-20 | 2016-08-02 | Microsoft Technology Licensing, Llc | Monitoring mobile application performance |
| US10356022B2 (en) * | 2014-07-06 | 2019-07-16 | Movy Co. | Systems and methods for manipulating and/or concatenating videos |
-
2017
- 2017-04-01 WO PCT/CN2017/000274 patent/WO2018176177A1/zh not_active Ceased
- 2017-04-01 US US16/490,427 patent/US20200028889A1/en not_active Abandoned
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102117473A (zh) * | 2010-01-05 | 2011-07-06 | 张国才 | 一种图文兼备的抄表管理系统 |
| CN102231077A (zh) * | 2011-07-06 | 2011-11-02 | 卢民 | 一种安全实时监控预警系统及监控预警方法 |
| CN102708111A (zh) * | 2012-01-16 | 2012-10-03 | 陈晓亮 | 一种群体用户自身指数展示系统及方法 |
| CN103064590A (zh) * | 2012-12-25 | 2013-04-24 | 天津三星通信技术研究有限公司 | 一种关闭移动终端运行程序的控制方法及系统 |
| CN107229485A (zh) * | 2016-03-23 | 2017-10-03 | 福建福昕软件开发股份有限公司 | 一种解决采集数据类软件关闭速度慢的方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20200028889A1 (en) | 2020-01-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12151156B1 (en) | System, method and apparatus for collecting and utilizing big data for online gameplay | |
| CN111177899A (zh) | 一种基于云平台的多学科协同仿真方法和系统 | |
| CN108984610A (zh) | 一种基于大数据框架离线实时处理数据的方法及系统 | |
| CN104850491B (zh) | 一种软件测试方法、设备及系统 | |
| CN103198007A (zh) | 多进程的日志输出方法及系统 | |
| CN107146623B (zh) | 基于人工智能的语音识别方法、装置和系统 | |
| CN106155805A (zh) | 系统内节点数的调整方法和装置 | |
| DE112016002846T5 (de) | Dynamisches Management eines Inaktivitätszeitgebers während der Kommunikation zwischen Prozessoren | |
| EP3024225A1 (en) | System and method of video streaming | |
| US11502899B2 (en) | Dynamic product installation based on user feedback | |
| TW201243727A (en) | Managing a portal application | |
| CN207083118U (zh) | 一种基于物联网和社交网络的远程天文台系统 | |
| CN105007209A (zh) | 一种基于rs485的轮询通讯方法 | |
| CN107454177A (zh) | 网络通信的动态实现方法 | |
| WO2015110047A1 (zh) | 一种用于终端应用的数据处理方法和装置 | |
| CN113971200B (zh) | 一种云原生平台的地图服务流量录制系统及方法 | |
| WO2018176177A1 (zh) | 一种解决采集数据类软件关闭速度慢的方法 | |
| DE102022120629A1 (de) | Überwachung und reparatur von kühlleitungen | |
| CN110505301A (zh) | 一种航空制造车间工业大数据处理框架 | |
| WO2021057023A1 (zh) | 一种基于部件温度自动分配计算资源的降功耗方法和系统 | |
| CN112800140B (zh) | 一种基于区块链预言机的高可信数据获取方法 | |
| CN102929159B (zh) | 一种仿真模型状态控制方法与装置 | |
| DE102023134764A1 (de) | Dualmodus-rechenzentrumskühlsystem | |
| US11599789B2 (en) | Hierarchical highly heterogeneous distributed system based deep learning application optimization framework | |
| CN109040304A (zh) | 一种CloudROS云机器人架构 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17902632 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17902632 Country of ref document: EP Kind code of ref document: A1 |